def test_check_file_raises_error(self, _): plugin = PluginAction() self.assertRaisesRegexp(error.ArgumentException, 'File "/tmp/path/plugin.fp" does not exists', plugin.check_file, self.file_name)
def test_check_file(self, _): plugin = PluginAction() plugin.check_file(self.file_name)
def test_parse_name_version_raises_error(self): plugin = PluginAction() self.assertRaisesRegexp( error.ArgumentException, 'Syntax: fuel plugins <action> fuel_plugin==1.0.0', plugin.parse_name_version, 'some_string')
def test_parse_name_version(self): plugin = PluginAction() self.assertEqual(plugin.parse_name_version('name==version'), ['name', 'version'])
def test_parse_name_version(self): plugin = PluginAction() self.assertEqual( plugin.parse_name_version('name==version'), ['name', 'version'])