Home
last modified time | relevance | path

Searched refs:kr_mock (Results 1 – 1 of 1) sorted by relevance

/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/config/
H A Dtest_config.py496 def test_load_auth_cache_not_found(self, ks_mock, kr_mock): argument
501 kr_mock.get_password = mock.Mock(side_effect=[RuntimeError])
504 kr_mock.get_password.assert_called_with(
511 def test_load_auth_cache_found(self, ks_mock, kr_mock): argument
517 kr_mock.get_password = mock.Mock(return_value=fake_auth)
520 kr_mock.get_password.assert_called_with(
525 def test_set_auth_cache(self, kr_mock): argument
530 kr_mock.get_password = mock.Mock(side_effect=[RuntimeError])
531 kr_mock.set_password = mock.Mock()
536 kr_mock.set_password.assert_called_with(