Make test stronger to hopefully fix odd Jenkins failure

This commit is contained in:
Andrew Godwin 2014-01-08 21:20:29 +00:00
parent fa250c2cf9
commit 9ae17d994b
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class LoaderTests(TestCase):
) )
# Now render it out! # Now render it out!
project_state = migration_loader.graph.project_state(("migrations", "0001_initial")) project_state = migration_loader.graph.project_state(("migrations", "0001_initial"))
self.assertEqual(len(project_state.models), 4) self.assertEqual(len([m for a, m in project_state.models if a == "migrations"]), 1)
book_state = project_state.models["migrations", "book"] book_state = project_state.models["migrations", "book"]
self.assertEqual( self.assertEqual(