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
commit5887158dcd73bfa24bef44c9d6267e4613b0c88c (patch)
treefdc1350dc391ab226177c62a436b2a155a24e9ee /tests
parenta5a43a5545c80bbc9d3df83011d0da41316d4afc (diff)
downloadrsa-git-5887158dcd73bfa24bef44c9d6267e4613b0c88c.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, [])