Beispiel #1
0
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)
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)
Beispiel #3
0
 def setUp(self):
     super(TestDevice, self).setUp()
     self.target = Target(None, None)
Beispiel #4
0
 def test_base(self):
     target = Target(None, None)
     self.assertIsInstance(target.get_device_version(), str)
 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)