def test_node_path_to_related(exists): ("Node#path_to_related takes a path and returns the relative way there") nd = Node("/foo/bar/something.py") result = nd.path_to_related("/foo/docs/assets/style.css") result.should.equal('../../bar/something.py')