diff options
Diffstat (limited to 'tests/test_common.py')
-rw-r--r-- | tests/test_common.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_common.py b/tests/test_common.py index ac56bcd..c6a60d5 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -15,20 +15,9 @@ import unittest import struct -from rsa._compat import byte from rsa.common import byte_size, bit_size, inverse -class TestByte(unittest.TestCase): - def test_values(self): - self.assertEqual(byte(0), b"\x00") - self.assertEqual(byte(255), b"\xff") - - def test_struct_error_when_out_of_bounds(self): - self.assertRaises(struct.error, byte, 256) - self.assertRaises(struct.error, byte, -1) - - class TestByteSize(unittest.TestCase): def test_values(self): self.assertEqual(byte_size(1 << 1023), 128) |