def test_publish_by_prefix(self, mocker): mocker.return_value = MOCK_RESPONSE api.publish_by_prefix("pub_prefix") self.assertTrue( get_uri(mocker.call_args[0]).endswith( '/resources/image/publish_resources')) self.assertEqual(get_param(mocker, 'prefix'), 'pub_prefix')
def test_publish_by_prefix(self, mocker): mocker.return_value = MOCK_RESPONSE api.publish_by_prefix("pub_prefix") self.assertTrue(get_uri(mocker.call_args[0]).endswith('/resources/image/publish_resources')) self.assertEqual(get_param(mocker, 'prefix'), 'pub_prefix')