示例#1
0
 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)
示例#2
0
 def test_function(self):
     actual = kernel_versions._get_dpkg_command_args_list(
         kernel_versions.DpkgCommandParams(),
     )
     self.assertEqual(
         ['dpkg', '--list'],
         actual,
     )
示例#3
0
 def setUp(self):
     self.param = kernel_versions._get_dpkg_command_args_list(
         kernel_versions.DpkgCommandParams(),
     )