コード例 #1
0
    def test_merges_if_build_is_covered(self):
        line1 = ExpectationsLine("BUG1 WIN RELEASE : test.html = FAIL")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test.html = FAIL")

        self.assertTrue(line1.can_merge(line2))
        line1.merge(line2)
        self.assertEquals("BUG1 WIN : test.html = FAIL", str(line1))
コード例 #2
0
    def test_merges_if_build_is_covered(self):
        line1 = ExpectationsLine("BUG1 WIN RELEASE : test.html = FAIL")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test.html = FAIL")

        self.assertTrue(line1.can_merge(line2))
        line1.merge(line2)
        self.assertEquals("BUG1 WIN : test.html = FAIL", str(line1))
コード例 #3
0
    def test_targets(self):
        input = ExpectationsLine(
            "BUG13907 LINUX MAC : media/video-zoom.html = IMAGE PASS")

        self.assertTrue(('linux', 'release') in input.targets())
コード例 #4
0
    def test_mismatched_test_names_cant_merge(self):
        line1 = ExpectationsLine("BUG1 WIN RELEASE : test1.html = TEXT")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test2.html = TEXT")

        self.assertFalse(line1.can_merge(line2))
コード例 #5
0
    def test_mismatched_attributes_cant_merge(self):
        line1 = ExpectationsLine("BUG1 SLOW WIN RELEASE : test.html = FAIL")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test.html = FAIL")

        self.assertFalse(line1.can_merge(line2))
コード例 #6
0
 def test___str___works(self):
     input = "BUG1 WIN RELEASE : test.html = FAIL"
     line = ExpectationsLine(input)
     self.assertEquals(input, str(line))
コード例 #7
0
    def test_targets(self):
        input = ExpectationsLine("BUG13907 LINUX MAC : media/video-zoom.html = IMAGE PASS")

        self.assertTrue(('linux', 'release') in input.targets())
コード例 #8
0
    def test_mismatched_test_names_cant_merge(self):
        line1 = ExpectationsLine("BUG1 WIN RELEASE : test1.html = TEXT")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test2.html = TEXT")

        self.assertFalse(line1.can_merge(line2))
コード例 #9
0
    def test_mismatched_attributes_cant_merge(self):
        line1 = ExpectationsLine("BUG1 SLOW WIN RELEASE : test.html = FAIL")
        line2 = ExpectationsLine("BUG1 WIN DEBUG : test.html = FAIL")

        self.assertFalse(line1.can_merge(line2))