Esempio n. 1
0
 def test_assert_any_match_regex(self):
     with assert_raises(AssertionError):
         values = [
             '"$',
             '@#~',
         ]
         pattern = re.compile(r'\w+')
         assert_any_match_regex(pattern, values)
Esempio n. 2
0
 def test_assert_any_match_regex(self):
     values = [
         '"$',
         'abc',
         '@#~',
     ]
     pattern = re.compile(r'\w+')
     assert_any_match_regex(pattern, values)