def test_Tree_get_zero(): from pymvptree import Tree, Point t = Tree() with pytest.raises(ValueError): t.get(Point(b'', b''))
def test_Tree_get_from_memory(data): from pymvptree import Tree, Point p = Point(b'', data) t = Tree() t.add(p) found = t.get(p) assert found == p
def test_Tree_get_needs_arguments(): from pymvptree import Tree t = Tree() with pytest.raises(TypeError): assert t.get()