You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
515 B

  1. import unittest
  2. from nd2reader.driver.version import parse_version
  3. class VersionTests(unittest.TestCase):
  4. def test_parse_version_2(self):
  5. data = 'ND2 FILE SIGNATURE CHUNK NAME01!Ver2.2'
  6. actual = parse_version(data)
  7. expected = (2, 2)
  8. self.assertTupleEqual(actual, expected)
  9. def test_parse_version_3(self):
  10. data = 'ND2 FILE SIGNATURE CHUNK NAME01!Ver3.0'
  11. actual = parse_version(data)
  12. expected = (3, 0)
  13. self.assertTupleEqual(actual, expected)