Exemplo n.º 1
0
 def test_true_at_start(self):
     result = doctest2._ellipsis_match("...bar", "foobar")
     self.assertTrue(result)
Exemplo n.º 2
0
 def test_false_at_end(self):
     result = doctest2._ellipsis_match("bar...", "foobar")
     self.assertFalse(result)
Exemplo n.º 3
0
 def test_no_ellipsis(self):
     result = doctest2._ellipsis_match("foo", "foo")
     self.assertTrue(result)
Exemplo n.º 4
0
 def test_false_in_middle(self):
     result = doctest2._ellipsis_match("aa...aa", "aaa")
     self.assertFalse(result)
Exemplo n.º 5
0
 def test_true_at_end(self):
     result = doctest2._ellipsis_match("foo...", "foobar")
     self.assertTrue(result)
Exemplo n.º 6
0
 def test_true_at_start(self):
     result = doctest2._ellipsis_match("...bar", "foobar")
     self.assertTrue(result)
Exemplo n.º 7
0
 def test_false_at_start(self):
     result = doctest2._ellipsis_match("...bar", "foofoo")
     self.assertFalse(result)
Exemplo n.º 8
0
 def test_no_ellipsis(self):
     result = doctest2._ellipsis_match("foo", "foo")
     self.assertTrue(result)
Exemplo n.º 9
0
 def test_false_at_end(self):
     result = doctest2._ellipsis_match("bar...", "foobar")
     self.assertFalse(result)
Exemplo n.º 10
0
 def test_true_at_end(self):
     result = doctest2._ellipsis_match("foo...", "foobar")
     self.assertTrue(result)
Exemplo n.º 11
0
 def test_false_in_middle(self):
     result = doctest2._ellipsis_match("aa...aa", "aaa")
     self.assertFalse(result)
Exemplo n.º 12
0
 def test_false_at_start(self):
     result = doctest2._ellipsis_match("...bar", "foofoo")
     self.assertFalse(result)