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