Package list python-castellan / 35f1a20
Fix assertion typo in barbican key manager unit test Change-Id: Ibd761519cb6ef2ee27aebe2b02c80c8c5c0b7ca4 Mark Goddard 8 months ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
121121 self.assertRaises(exception.KeyManagerError,
122122 self.key_mgr._create_base_url,
123123 auth, sess, endpoint)
124 auth.get_discovery.asser_called_once_with(sess, url=endpoint)
124 auth.get_discovery.assert_called_once_with(sess, url=endpoint)
125125 self.assertEqual(1, discovery.raw_version_data.call_count)
126126
127127 def test_base_url_get_discovery(self):
135135 endpoint = "http://localhost/key_manager"
136136
137137 base_url = self.key_mgr._create_base_url(auth,
138 mock.Mock(),
138 sess,
139139 endpoint)
140140 self.assertEqual(endpoint + "/" + version, base_url)
141 auth.get_discovery.asser_called_once_with(sess, url=endpoint)
141 auth.get_discovery.assert_called_once_with(sess, url=endpoint)
142142 self.assertEqual(1, discovery.raw_version_data.call_count)
143143
144144 def test_create_key(self):