Esempio n. 1
0
 def test_publish_by_tag(self, mocker):
     mocker.return_value = MOCK_RESPONSE
     api.publish_by_tag("pub_tag")
     self.assertTrue(
         get_uri(mocker.call_args[0]).endswith(
             '/resources/image/publish_resources'))
     self.assertEqual(get_param(mocker, 'tag'), "pub_tag")
Esempio n. 2
0
 def test_publish_by_tag(self, mocker):
     mocker.return_value = MOCK_RESPONSE
     api.publish_by_tag("pub_tag")
     self.assertTrue(get_uri(mocker.call_args[0]).endswith('/resources/image/publish_resources'))
     self.assertEqual(get_param(mocker, 'tag'), "pub_tag")