1. Gora Khargosh
  2. python-rsa

Commits

Yesudeep Mangalapilly  committed 83b0e38

Reorganizes tests.

  • Participants
  • Parent commits 8feac95
  • Branches default

Comments (0)

Files changed (1)

File tests/test_common.py

View file
         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)
         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, [])