Merge "need to mock out of the clear_expired_passwords for tox"

This commit is contained in:
Jenkins 2013-11-21 21:01:24 +00:00 committed by Gerrit Code Review
commit de0d847313

View File

@ -765,7 +765,7 @@ class MySqlAppMockTest(testtools.TestCase):
when(mock_status).wait_for_real_status_to_change_to(
any(), any(), any()).thenReturn(True)
app = MySqlApp(mock_status)
when(dbaas).clear_expired_password().thenReturn(None)
self.assertRaises(TypeError, app.secure, None)
verify(mock_conn, atleast=2).execute(any())