def test_save_calls_methods_properly(self, mock_store_wrapper):
     credential_provider = KeystoreCredentialsProvider()
     credential_provider.save(MockCredentials)
     calls = [
         call(TEST_HOSTNAME, MACHINE, TEST_HOSTNAME),
         call(TEST_HOSTNAME, USERNAME, 'somelogin'),
         call(TEST_HOSTNAME, PASSWORD, 'somepass')
     ]
     mock_store_wrapper.assert_has_calls(calls)
 def test_save_can_raise_operation_not_complete_exception(
         self, mock_store_wrapper):
     with self.assertRaises(OperationNotCompletedException):
         credential_provider = KeystoreCredentialsProvider()
         credential_provider.save(MockCredentials)