def test_version_info(self):
        version_config = VersionConfig()

        self.assertFalse(version_config.is_valid)

        version_config.name = 'RCP_MK2'
        version_config.major = '3'
        version_config.serial = '123456'

        self.assertTrue(version_config.is_valid)
示例#2
0
    def test_version_info(self):
        version_config = VersionConfig()

        self.assertFalse(version_config.is_valid)

        version_config.name = 'RCP_MK2'
        version_config.major = '3'
        version_config.serial = '123456'
        version_config.friendlyName = 'RaceCapture/Pro MK2'

        self.assertTrue(version_config.is_valid)
    def test_version_info(self):
        version_config = VersionConfig()

        self.assertFalse(version_config.is_valid)

        version_config.name = 'RCP_MK2'
        version_config.major = '3'
        version_config.serial = '123456'
        version_config.friendlyName = 'RaceCapture/Pro MK2'

        self.assertTrue(version_config.is_valid)