import unittest

from ..Utils import build_hex_version

class TestCythonUtils(unittest.TestCase):
    def test_build_hex_version(self):
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
        self.assertEqual('0x001D00F0', build_hex_version('0.29'))
        self.assertEqual('0x040000F0', build_hex_version('4.0'))

import unittest

from ..Utils import build_hex_version

class TestCythonUtils(unittest.TestCase):
    def test_build_hex_version(self):
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
        self.assertEqual('0x001D00F0', build_hex_version('0.29'))
        self.assertEqual('0x040000F0', build_hex_version('4.0'))

Remove accidentally duplicated test code.
Remove accidentally duplicated test code.

  import unittest
  
  from ..Utils import build_hex_version
  
  class TestCythonUtils(unittest.TestCase):
      def test_build_hex_version(self):
          self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
-         self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
          self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
          self.assertEqual('0x001D00F0', build_hex_version('0.29'))
          self.assertEqual('0x040000F0', build_hex_version('4.0'))
  
Remove accidentally duplicated test code.
## Code Before:
import unittest

from ..Utils import build_hex_version

class TestCythonUtils(unittest.TestCase):
    def test_build_hex_version(self):
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
        self.assertEqual('0x001D00F0', build_hex_version('0.29'))
        self.assertEqual('0x040000F0', build_hex_version('4.0'))

## Instruction:
Remove accidentally duplicated test code.
## Code After:
import unittest

from ..Utils import build_hex_version

class TestCythonUtils(unittest.TestCase):
    def test_build_hex_version(self):
        self.assertEqual('0x001D00A1', build_hex_version('0.29a1'))
        self.assertEqual('0x001D03C4', build_hex_version('0.29.3rc4'))
        self.assertEqual('0x001D00F0', build_hex_version('0.29'))
        self.assertEqual('0x040000F0', build_hex_version('4.0'))
