Example #1
0
def test_base():
    assert sizeof(1) == getsizeof(1)
Example #2
0
def test_base():
    assert sizeof(1) == getsizeof(1)
Example #3
0
def test_containers():
    assert sizeof([1, 2, [3]]) > (getsizeof(3) * 3 + getsizeof([]))
Example #4
0
def test_containers():
    assert sizeof([1, 2, [3]]) > (getsizeof(3) * 3 + getsizeof([]))