Beispiel #1
0
 def test_size_fail(self):
     size = 1024
     torrentinfo.dump_as_size(size, self.config, 0)
     output = self.out.getvalue()
     self.assertNotEqual(output, '1.0GB')
Beispiel #2
0
 def test_size_success(self):
     size = 1024 * 1024
     torrentinfo.dump_as_size(size, self.config, 0)
     output = self.out.getvalue()
     self.assertEqual(output, '1.0MB\n')