Пример #1
0
 def test_assert_all_match_regex(self):
     values = [
         'abc',
         '123 abc def',
     ]
     pattern = re.compile(r'\w+')
     assert_all_match_regex(pattern, values)
Пример #2
0
 def test_assert_all_match_regex(self):
     with assert_raises(AssertionError):
         values = [
             '$%`',
             '123 abc def',
         ]
         pattern = re.compile(r'\w+')
         assert_all_match_regex(pattern, values)