Exemple #1
0
 def test_sizeof_not_formatted(self):
     n = Memory.sizeof(1, False)
     self.assertTrue(isinstance(n, int))
     self.assertEqual(n, getsizeof(1))
Exemple #2
0
 def test_sizeof_not_formatted(self):
     n = Memory.sizeof(1, False)
     self.assertTrue(isinstance(n, int))
     self.assertEqual(n, getsizeof(1))
Exemple #3
0
 def test_sizeof(self):
     s = Memory.sizeof(1)
     self.assertTrue(isinstance(s, str))
     self.assertTrue(len(s))
Exemple #4
0
 def test_sizeof(self):
     s = Memory.sizeof(1)
     self.assertTrue(isinstance(s, str))
     self.assertTrue(len(s))