coverage: Add coverage for OPTIONS HTTP method.

This commit is contained in:
Tim Abbott
2017-03-05 00:31:17 -08:00
parent e95f139308
commit c8e38aaa55
3 changed files with 19 additions and 1 deletions

View File

@@ -165,6 +165,13 @@ class ZulipTestCase(TestCase):
django_client = self.client # see WRAPPER_COMMENT
return django_client.delete(url, encoded, **kwargs)
@instrument_url
def client_options(self, url, info={}, **kwargs):
# type: (Text, Dict[str, Any], **Any) -> HttpResponse
encoded = urllib.parse.urlencode(info)
django_client = self.client # see WRAPPER_COMMENT
return django_client.options(url, encoded, **kwargs)
@instrument_url
def client_post(self, url, info={}, **kwargs):
# type: (Text, Dict[str, Any], **Any) -> HttpResponse