Merge "Fix call to mock.assert_not_called()"

This commit is contained in:
Jenkins 2014-05-21 06:17:09 +00:00 committed by Gerrit Code Review
commit 7966587728
1 changed files with 3 additions and 2 deletions

View File

@ -184,9 +184,10 @@ class TestMigrationCommon(test_base.DbTestCase):
) as (mock_find_repo, mock_sanity, mock_downgrade):
mock_find_repo.return_value = self.return_value
migration.db_sync(self.engine, self.path, self.test_version, False)
migration.db_sync(self.engine, self.path, self.test_version,
sanity_check=False)
mock_sanity.assert_not_called()
self.assertFalse(mock_sanity.called)
def test_db_sanity_table_not_utf8(self):
with mock.patch.object(self, 'engine') as mock_eng: