Skip to content

Commit

Permalink
Added the start of a CreateView testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdutton committed Jan 15, 2012
1 parent 1cadc45 commit 0c9c2a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openorg_timeseries/tests/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.