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