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