def test_magic_1(self): expected = six.b('\x93NUMPY\x01\x00') prefix = six.b('\x93NUMPY') major = 1 minor = 0 result = fmt.magic(major=major, minor=minor, prefix=prefix) self.assertEqual(result, expected)
def test_magic_0(self): expected = six.b('\x93DARRY\x03\x02') prefix = six.b('\x93DARRY') major = 3 minor = 2 result = fmt.magic(major=major, minor=minor, prefix=prefix) self.assertEqual(result, expected)