Пример #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"])