def test_immutability(self): svc = RegexService(r'\d+', 'match', 0) with self.assertRaises(TypeError): svc.match_type = 'findall'
def test_immutability(self): svc = RegexService(r"\d+", "match", 0) with self.assertRaises(TypeError): svc.match_type = "findall"