Permalink
Browse files

Added the start of a CreateView testcase.

  • Loading branch information...
1 parent 1cadc45 commit 0c9c2a4f7a9ab260a1acf0c65617bd08e72f4a55 @alexsdutton alexsdutton committed Jan 15, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 openorg_timeseries/tests/admin.py
@@ -264,3 +264,12 @@ def testEmptyRequest(self):
content_type='application/json',
REMOTE_USER='unprivileged')
self.assertEqual(response.status_code, httplib.OK)
+
+class CreateViewTestCase(TimeSeriesTestCase):
+ def testGET(self):
+ response = self.client.get('/admin/create/',
+ REMOTE_USER='withaddperm',
+ HTTP_ACCEPT='text/html')
+ self.assertEqual(response.status_code, httplib.OK, response._get_content())
+ self.assertEqual(response['Content-type'], 'text/html', response._get_content())
+

0 comments on commit 0c9c2a4

Please sign in to comment.