def test_write_dot_read_subscript(): f = Flexi() f.alice = 50 assert f["alice"] == 50 assert len(f) == 1 assert len(f.keys()) == 1 assert len(f.values()) == 1
def test_write_dot_read_get(): f = Flexi() f.alice = 50 assert f.get("alice") == 50 assert len(f) == 1 assert len(f.keys()) == 1 assert len(f.values()) == 1