def test_old_path_getter(self): """Return self._old_path""" rd = Redirect('/old/path', '/new/path', 302) rd._old_path = '/older/path' assert rd.old_path == '/older/path'