예제 #1
0
 def test_ok(self):
     url_pattern = self.prefix + '.{renderer}'
     none = DefaultStreamViewBase.validate_url_pattern(url_pattern)
     self.assertIsNone(none)
예제 #2
0
 def _test_error(self, url_pattern):
     with self.assertRaises(HTTPServerError):
         DefaultStreamViewBase.validate_url_pattern(url_pattern)