Skip to content
Browse files

Added test for successful documentation page response.

  • Loading branch information...
1 parent 29d44fe commit c6761100b48df0999f0cfdad4ae6cece83f05b8b @alexsdutton alexsdutton committed
Showing with 10 additions and 0 deletions.
  1. +1 −0 openorg_timeseries/tests/__init__.py
  2. +9 −0 openorg_timeseries/tests/endpoint.py
View
1 openorg_timeseries/tests/__init__.py
@@ -1,3 +1,4 @@
from .combine import *
from .admin import *
+from .endpoint import *
from openorg_timeseries.database.tests import *
View
9 openorg_timeseries/tests/endpoint.py
@@ -0,0 +1,9 @@
+import httplib
+
+from django.test import TestCase
+
+class DocumentationTestCase(TestCase):
+ def testOK(self):
+ response = self.client.get('/endpoint/documentation/')
+ self.assertEqual(response.status_code, httplib.OK)
+

0 comments on commit c676110

Please sign in to comment.
Something went wrong with that request. Please try again.