Added a test for the new API help page.

- Legacy-Id: 14299
This commit is contained in:
Henrik Levkowetz 2017-11-03 20:01:14 +00:00
parent 241a8c0b0c
commit 77d5f1c155

View file

@ -39,6 +39,11 @@ class CustomApiTestCase(TestCase):
r = client.post(url)
self.assertEqual(r.status_code, 201)
def test_api_help_page(self):
url = urlreverse('ietf.api.views.api_help')
r = self.client.get(url)
self.assertContains(r, 'The datatracker API', status_code=200)
class TastypieApiTestCase(ResourceTestCaseMixin, TestCase):
def __init__(self, *args, **kwargs):
self.apps = {}