TestCythonUtils.py 474 B

1234567891011
  1. import unittest
  2. from ..Utils import build_hex_version
  3. class TestCythonUtils(unittest.TestCase):
  4. def test_build_hex_version(self):
  5. self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
  6. self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
  7. self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
  8. self.assertEqual('0x001D00F0', build_hex_version('0.29'))
  9. self.assertEqual('0x040000F0', build_hex_version('4.0'))