コード例 #1
0
ファイル: text.py プロジェクト: alex8866/CentralReport
 def test_more_than_one_megabyte(self):
     self.assertEqual(cr_text.convert_byte(8765434), '8.36 MB')
コード例 #2
0
ファイル: text.py プロジェクト: alex8866/CentralReport
 def test_more_than_one_kilobyte(self):
     self.assertEqual(cr_text.convert_byte(1500), '1.46 KB')
コード例 #3
0
ファイル: text.py プロジェクト: alex8866/CentralReport
 def test_one_terabyte(self):
     self.assertEqual(cr_text.convert_byte(1099511627776), '1.0 TB')
コード例 #4
0
ファイル: text.py プロジェクト: alex8866/CentralReport
 def test_one_byte(self):
     self.assertEqual(cr_text.convert_byte(1), '1.0 B')
コード例 #5
0
ファイル: text.py プロジェクト: alex8866/CentralReport
 def test_one_gigabyte(self):
     self.assertEqual(cr_text.convert_byte(1073741824), '1.0 GB')