Ejemplo n.º 1
0
 def testK(self):
   """Make sure that parseKBytes does the right thing with kilobytes."""
   self.assertEqual(utils.parseKBytes("12K"), 12)
Ejemplo n.º 2
0
 def testP(self):
   """Test amount with just 'P' for suffix."""
   self.assertEqual(utils.parseKBytes("2P"), 2199023255552)
Ejemplo n.º 3
0
 def testMiB(self):
   """Test amount with MiB suffix."""
   self.assertEqual(utils.parseKBytes("8MiB"), 8192)
Ejemplo n.º 4
0
 def testGB(self):
   """Test amount with GB suffix."""
   self.assertEqual(utils.parseKBytes("15G"), 15728640)
Ejemplo n.º 5
0
 def testK(self):
     """Make sure that parseKBytes does the right thing with kilobytes."""
     self.assertEqual(utils.parseKBytes("12K"), 12)
Ejemplo n.º 6
0
 def testMiB(self):
     """Test amount with MiB suffix."""
     self.assertEqual(utils.parseKBytes("8MiB"), 8192)
Ejemplo n.º 7
0
 def testP(self):
     """Test amount with just 'P' for suffix."""
     self.assertEqual(utils.parseKBytes("2P"), 2199023255552)
Ejemplo n.º 8
0
 def testGB(self):
     """Test amount with GB suffix."""
     self.assertEqual(utils.parseKBytes("15G"), 15728640)