diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2014-05-16 16:50:24 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <glongwave@gmail.com> | 2014-05-16 09:03:27 +0000 |
commit | 40528aa2f54557b81ec6e913650dcce465b6dd13 (patch) | |
tree | 91aa3ff70d674f86ac7b348830e9498450fbfc2f | |
parent | 38febeff3221e30103548fd75d87c6a2d342dd95 (diff) | |
download | oslo-db-40528aa2f54557b81ec6e913650dcce465b6dd13.tar.gz |
Fix wrong method name with assert_called_once_with
There isn't method assert_called_once, and it doesn't really
check anything. we should use assert_called_once_with.
Change-Id: Id4b25f471dcd89e8136ae34a0dcff36c30ba9fd2
-rw-r--r-- | tests/sqlalchemy/test_migration_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sqlalchemy/test_migration_common.py b/tests/sqlalchemy/test_migration_common.py index 9f05aff..d61e732 100644 --- a/tests/sqlalchemy/test_migration_common.py +++ b/tests/sqlalchemy/test_migration_common.py @@ -174,7 +174,7 @@ class TestMigrationCommon(test_base.DbTestCase): mock_find_repo.return_value = self.return_value migration.db_sync(self.engine, self.path, self.test_version) - mock_sanity.assert_called_once() + mock_sanity.assert_called_once_with(self.engine) def test_db_sync_sanity_skipped(self): with contextlib.nested( |