diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-06-16 11:19:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-16 14:19:18 -0400 |
| commit | 4f336f66523001b009ab038b10848508fd208b3b (patch) | |
| tree | 47474fb588013f1770246455ef7aa1a4163a1edb /tests/files | |
| parent | ea34426ae789d31b036f58c8fd59ce299649e91e (diff) | |
Fixed #26747 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/files')
| -rw-r--r-- | tests/files/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py index 12207fee99..d20c2d47bc 100644 --- a/tests/files/tests.py +++ b/tests/files/tests.py @@ -167,7 +167,7 @@ class NoNameFileTestCase(unittest.TestCase): urllib.urlopen() """ def test_noname_file_default_name(self): - self.assertEqual(File(BytesIO(b'A file with no name')).name, None) + self.assertIsNone(File(BytesIO(b'A file with no name')).name) def test_noname_file_get_size(self): self.assertEqual(File(BytesIO(b'A file with no name')).size, 19) @@ -175,7 +175,7 @@ class NoNameFileTestCase(unittest.TestCase): class ContentFileTestCase(unittest.TestCase): def test_content_file_default_name(self): - self.assertEqual(ContentFile(b"content").name, None) + self.assertIsNone(ContentFile(b"content").name) def test_content_file_custom_name(self): """ |
