def test_absolute(self): "Test the absolute path calculation" eq_("/home/nicoe/python/mock.py", _absolute("/home/nicoe/python/mock.py")) our_dir, _ = os.path.split(__file__) # We use this because me go up by two frames new_path = self.abspath_helper(os.path.join('brol', 'toto')) eq_(os.path.join(our_dir, 'brol', 'toto'), new_path)
def abspath_helper(self, path): return _absolute(path)