def test_get_url_https(self): plugin = { 'source': 'https://google.com', 'install_arguments': '--pre' } url = operations.get_plugin_source(plugin) args = operations.get_plugin_args(plugin) self.assertEqual(url, 'https://google.com') self.assertEqual(args, '--pre')
def test_get_url_and_args_http_no_args(self): plugin = {'source': 'http://google.com'} url = operations.get_plugin_source(plugin) args = operations.get_plugin_args(plugin) self.assertEqual(url, 'http://google.com') self.assertEqual(args, '')