def test_match(self): assert Validator.match(r'[a-zA-Z0-9]', 'TestString123') assert not Validator.match(r'^[a-zA-Z]$', 'Test-String123')