tests/test_prettysize.py
changeset 83 515fadd3d286
parent 82 7b82dc1fb6f5
child 84 3b5dd9efba35
--- a/tests/test_prettysize.py	Wed Apr 10 11:22:15 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#!/usr/bin/env python3
-
-from pgtoolkit import prettysize
-
-import unittest
-
-
-class TestPrettySize(unittest.TestCase):
-    def test_prettysize(self):
-        psize = prettysize.prettysize_short
-        expected = (
-            (0, '0'),
-            (1000, '1000'),
-            (1024, '1K'),
-            (1050, '1.03K'),
-            (2050, '2K'),
-            (333333, '325.52K'),
-            (1048576, '1M'),
-            (1050000, '1M'),
-            (5555555, '5.3M'),
-            (1073741824, '1G'),
-            )
-        for input, result in expected:
-            self.assertEqual(psize(input), result)
-
-
-if __name__ == '__main__':
-    unittest.main()
-