class TestDevice(LavaDispatcherTestCase): def setUp(self): super(TestDevice, self).setUp() self.target = Target(None, None) def test_boot_cmds_preprocessing_empty_list(self): boot_cmds = [] expexted = [] return_value = self.target._boot_cmds_preprocessing(boot_cmds) self.assertEqual(return_value, expexted) def test_boot_cmds_preprocessing(self): boot_cmds = ["foo", "bar", ""] expected = ["foo", "bar"] return_value = self.target._boot_cmds_preprocessing(boot_cmds) self.assertEqual(return_value, expected)
def setUp(self): super(TestDevice, self).setUp() self.target = Target(None, None)
def test_base(self): target = Target(None, None) self.assertIsInstance(target.get_device_version(), str)