Example #1
0
 def test_for_pat_is_match(self):
     actual = for_pat.search('$for i in items:')
     self.assertIsNotNone(actual)
     self.assertEqual('i', actual.group(1))
     self.assertEqual('items:', actual.group(2))
Example #2
0
 def test_for_pat_is_not_match(self):
     actual = for_pat.search('$for in ')
     self.assertIsNone(actual)