def test_parse_with_errors(self): param = kernel_versions.DpkgCommandParams() actual = kernel_versions.parse_dpkg_output('test', 'test', param) expected = kernel_versions.DpkgCommandResult( error='test', kernel_versions_installed=None, ) self.assertEqual(expected, actual)
def test_function(self): actual = kernel_versions._get_dpkg_command_args_list( kernel_versions.DpkgCommandParams(), ) self.assertEqual( ['dpkg', '--list'], actual, )
def setUp(self): self.param = kernel_versions._get_dpkg_command_args_list( kernel_versions.DpkgCommandParams(), )