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