summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-17 00:35:36 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-17 00:35:36 +0530
commit10ca3980f4eba09a22338379644eba6739bbbb34 (patch)
treefdc1350dc391ab226177c62a436b2a155a24e9ee /tests
parenteaaabd0ecc9ef06eaf5734908f1476cbbc7565a5 (diff)
downloadrsa-10ca3980f4eba09a22338379644eba6739bbbb34.tar.gz
Reorganizes tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_common.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_common.py b/tests/test_common.py
index 9b69193..d105dc0 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -21,9 +21,6 @@ class Test_byte_size(unittest2.TestCase):
self.assertEqual(byte_size(1 << 1023), 128)
self.assertEqual(byte_size((1 << 1024) - 1), 128)
self.assertEqual(byte_size(1 << 1024), 129)
-
- def test_zero(self):
- self.assertEqual(byte_size(0), 1)
self.assertEqual(byte_size(255), 1)
self.assertEqual(byte_size(256), 2)
self.assertEqual(byte_size(0xffff), 2)
@@ -33,7 +30,9 @@ class Test_byte_size(unittest2.TestCase):
self.assertEqual(byte_size(0xffffffffffff), 6)
self.assertEqual(byte_size(0xffffffffffffff), 7)
self.assertEqual(byte_size(0xffffffffffffffff), 8)
-
+
+ def test_zero(self):
+ self.assertEqual(byte_size(0), 1)
def test_bad_type(self):
self.assertRaises(TypeError, byte_size, [])