Exemple #1
0
 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")
Exemple #2
0
 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")
Exemple #3
0
 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")
Exemple #4
0
 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")
Exemple #5
0
 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")