def test_failed_build(self): status = BuildStatus([("CONFIGURE", 0), ("BUILD", 4)]) self.assertEquals( '<span class="status passed">ok</span>/<span class="status failed">4</span>', html_build_status(status))
def test_disk_full(self): status = BuildStatus([("CONFIGURE", 0), ("BUILD", 4)], set(["timeout"])) self.assertEquals( '<span class="status passed">ok</span>/<span class="status failed">4</span>' '(<span class="status failed">timeout</span>)', html_build_status(status))
def test_empty(self): status = BuildStatus() self.assertEquals("?", html_build_status(status))