def test_up_to_project(self, session): build = Build(self.p, **self.data) session.commit() result = build.get_url('project') assert result == '/builds/ceph/'
def test_by_sha1(self, session): build = Build(self.p, **self.data) session.commit() result = build.get_url('sha1') assert result == '/builds/ceph/master/sha1/'