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