def test_init(): vec = Vectors(128) assert vec.mem is not None with pytest.raises(AttributeError) as excinfo: vec.mem = None