[1.7.x] Fix broken test

This commit is contained in:
Andrew Godwin 2014-06-17 21:32:23 -07:00
parent f355d253f8
commit cd82069b97
1 changed files with 2 additions and 3 deletions

View File

@ -1212,11 +1212,10 @@ class SwappableOperationTests(OperationTestBase):
project_state, new_state = self.make_test_state("test_adfligsw", operation) project_state, new_state = self.make_test_state("test_adfligsw", operation)
# Test the database alteration # Test the database alteration
self.assertTableNotExists("test_adfligsw_pont") self.assertTableNotExists("test_adfligsw_pont")
self.assertColumnNotExists("test_adfligsw_pony", "height")
with connection.schema_editor() as editor: with connection.schema_editor() as editor:
operation.database_forwards("test_adfligsw", editor, project_state, new_state) operation.database_forwards("test_adfligsw", editor, project_state, new_state)
self.assertColumnNotExists("test_adfligsw_pony", "height") self.assertTableNotExists("test_adfligsw_pont")
# And test reversal # And test reversal
with connection.schema_editor() as editor: with connection.schema_editor() as editor:
operation.database_backwards("test_adfligsw", editor, new_state, project_state) operation.database_backwards("test_adfligsw", editor, new_state, project_state)
self.assertColumnNotExists("test_adfligsw_pony", "height") self.assertTableNotExists("test_adfligsw_pont")