Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def assertNoMatch(self, input: str) -> None:
m = _type_comment_re.match(input)
self.assertIsNone(m)
def assertMatch(self, input: str, *, type: str, nl: str) -> None:
m = _type_comment_re.match(input)
self.assertIsNotNone(m)
if m is not None:
self.assertEqual(m.group("type"), type)
self.assertEqual(m.group("nl"), nl)