Exemple #1
0
 def test_valid_version(self):
     self.assertEqual(Flasher.is_valid_version(
         ['17', 'A5', 'D8', '46',  # magic number
          '02',                    # struct version
          'FF', 'FF', 'FF',        # (reserved for future use)
          '00', '00', '00', '00',  # revision hash
          '01', '02', '03'         # major, minor, patch
         ]), True)
Exemple #2
0
 def test_valid_version(self):
     self.assertTrue(Flasher.is_valid_version('4.1.1'))
Exemple #3
0
 def test_invalid_version(self):
     self.assertFalse(Flasher.is_valid_version('4.0.0'))