class HostOSDetectionTestCase(unittest.TestCase):

    def setUp(self):
        self.plugin_reset_mbed = HostTestPluginResetMethod_Mbed()

    def tearDown(self):
        pass

    def test_examle(self):
        pass

    def test_pyserial_version_detect(self):
        self.assertEqual(1.0, self.plugin_reset_mbed.get_pyserial_version("1.0"))
        self.assertEqual(1.0, self.plugin_reset_mbed.get_pyserial_version("1.0.0"))
        self.assertEqual(2.7, self.plugin_reset_mbed.get_pyserial_version("2.7"))
        self.assertEqual(2.7, self.plugin_reset_mbed.get_pyserial_version("2.7.1"))
        self.assertEqual(3.0, self.plugin_reset_mbed.get_pyserial_version("3.0"))
        self.assertEqual(3.0, self.plugin_reset_mbed.get_pyserial_version("3.0.1"))
class HostOSDetectionTestCase(unittest.TestCase):
    def setUp(self):
        self.plugin_reset_mbed = HostTestPluginResetMethod_Mbed()

    def tearDown(self):
        pass

    def test_examle(self):
        pass

    def test_pyserial_version_detect(self):
        self.assertEqual(1.0,
                         self.plugin_reset_mbed.get_pyserial_version("1.0"))
        self.assertEqual(1.0,
                         self.plugin_reset_mbed.get_pyserial_version("1.0.0"))
        self.assertEqual(2.7,
                         self.plugin_reset_mbed.get_pyserial_version("2.7"))
        self.assertEqual(2.7,
                         self.plugin_reset_mbed.get_pyserial_version("2.7.1"))
        self.assertEqual(3.0,
                         self.plugin_reset_mbed.get_pyserial_version("3.0"))
        self.assertEqual(3.0,
                         self.plugin_reset_mbed.get_pyserial_version("3.0.1"))
 def setUp(self):
     self.plugin_reset_mbed = HostTestPluginResetMethod_Mbed()
 def setUp(self):
     self.plugin_reset_mbed = HostTestPluginResetMethod_Mbed()