mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -123,7 +123,6 @@ class InitialSQLTests(TestCase):
|
||||
out = StringIO()
|
||||
management.call_command("sqlcustom", "fixtures_model_package", stdout=out)
|
||||
output = out.getvalue()
|
||||
self.assertTrue("INSERT INTO fixtures_model_package_book (name) "
|
||||
"VALUES ('My Book')" in output)
|
||||
self.assertIn("INSERT INTO fixtures_model_package_book (name) VALUES ('My Book')", output)
|
||||
# value from deprecated search path models/sql (remove in Django 1.9)
|
||||
self.assertTrue("Deprecated Book" in output)
|
||||
self.assertIn("Deprecated Book", output)
|
||||
|
||||
Reference in New Issue
Block a user