Mock doesn't have assert_called_once()
Mock doesn't provide assert_called_once, switch to the right function. Change-Id: I0e97f2e3b5a0e0b36c2ae276bdc67b00e9f2179f
This commit is contained in:
parent
ee4ee3b7f5
commit
c693d2d37c
@ -425,7 +425,7 @@ class SqlToken(SqlTests, test_backend.TokenTests):
|
||||
|
||||
# The expiry strategy is only invoked once, the other calls are via
|
||||
# the yield return.
|
||||
expiry_mock.assert_called_once()
|
||||
self.assertEqual(1, expiry_mock.call_count)
|
||||
mock_delete = mock_sql.get_session().query().filter().delete
|
||||
self.assertThat(mock_delete.call_args_list,
|
||||
matchers.HasLength(len(ITERS)))
|
||||
|
Loading…
Reference in New Issue
Block a user