예제 #1
0
 def test_two_wild_cards_with_many_matches(self):
     self.assertEqual(expand_wildcard(
         "Q*Q*Q", self.secrets_set2), ["QQQ", "QVQQ", "QVQVQ", "QQVQ"])
예제 #2
0
 def test_three_wild_card_with_many_matches(self):
     self.assertEqual(expand_wildcard(
         "Q*E*Q*E", self.secrets_set2), ["QrEQrE", "QErQE"])
예제 #3
0
 def test_one_wild_card_with_many_matches(self):
     self.assertEqual(expand_wildcard(
         "a*b", self.secrets_set), ["ab", "a b", "aabb"])
예제 #4
0
 def test_one_wild_card_with_one_match(self):
     self.assertEqual(expand_wildcard(
         "a*z", self.secrets_set), ["a[anyvalue]z"])
예제 #5
0
 def test_exact_match_regex(self):
     self.assertEqual(expand_wildcard("abc", self.secrets_set), ["abc"])
예제 #6
0
 def test_end_regex(self):
     self.assertEqual(expand_wildcard("ba", self.secrets_set), ["ba"])
예제 #7
0
 def test_start_regex(self):
     self.assertEqual(expand_wildcard("a", self.secrets_set), ["a"])