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