def test_sizeof_not_formatted(self): n = Memory.sizeof(1, False) self.assertTrue(isinstance(n, int)) self.assertEqual(n, getsizeof(1))
def test_sizeof(self): s = Memory.sizeof(1) self.assertTrue(isinstance(s, str)) self.assertTrue(len(s))