示例#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)