summaryrefslogtreecommitdiff
path: root/tests/raw_query/tests.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-06-16 11:19:18 -0700
committerTim Graham <timograham@gmail.com>2016-06-16 14:19:18 -0400
commit4f336f66523001b009ab038b10848508fd208b3b (patch)
tree47474fb588013f1770246455ef7aa1a4163a1edb /tests/raw_query/tests.py
parentea34426ae789d31b036f58c8fd59ce299649e91e (diff)
Fixed #26747 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/raw_query/tests.py')
-rw-r--r--tests/raw_query/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/raw_query/tests.py b/tests/raw_query/tests.py
index 3b017196e4..f4fe90aeb6 100644
--- a/tests/raw_query/tests.py
+++ b/tests/raw_query/tests.py
@@ -215,9 +215,9 @@ class RawQueryTests(TestCase):
def test_missing_fields(self):
query = "SELECT id, first_name, dob FROM raw_query_author"
for author in Author.objects.raw(query):
- self.assertNotEqual(author.first_name, None)
+ self.assertIsNotNone(author.first_name)
# last_name isn't given, but it will be retrieved on demand
- self.assertNotEqual(author.last_name, None)
+ self.assertIsNotNone(author.last_name)
def test_missing_fields_without_PK(self):
query = "SELECT first_name, dob FROM raw_query_author"