def test_uncertain_with_comment(self): edit = MockEdit(original="spam", proposal="eggs") def mock_content(): return html.clean("pirate ninja robot “spam” should be “eggs”") edit.page_content = mock_content self.assertEquals(edit.test(), "uncertain")
def test_unfixed_with_comment(self): edit = MockEdit(original="ninja", proposal="zombie") def mock_content(): return html.clean("pirate ninja robot “ninja” should be “zombie”") edit.page_content = mock_content self.assertEquals(edit.test(), "unfixed")
def test_substring_unfixed(self): edit = MockEdit(original="ninja robot", proposal="ninja") def mock_content(): return "pirate ninja robot" edit.page_content = mock_content self.assertEquals(edit.test(), "unfixed")
def test_substring_uncertain(self): edit = MockEdit(original="ninja robot", proposal="ninja") def mock_content(): return "spam eggs" edit.page_content = mock_content self.assertEquals(edit.test(), "uncertain")
def test_uncertain(self): edit = MockEdit(original="spam", proposal="eggs") def mock_content(): return "pirate ninja robot" edit.page_content = mock_content self.assertEquals(edit.test(), "uncertain")