Browse files

update tests for removal of POST for demographics

  • Loading branch information...
1 parent b76be9e commit 092d282af6af2591f4c9ae6d1836433d31f190d5 Travers Franckle committed May 24, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 indivo/tests/api/records_tests.py
View
8 indivo/tests/api/records_tests.py
@@ -593,12 +593,8 @@ def test_set_demographics(self):
record_id = self.record.id
url = '/records/%s/demographics'%(record_id)
- # post
- response = self.client.post(url, data=TEST_DEMOGRAPHICS_DOCS[0]['content'], content_type='text/xml')
- self.assertEquals(response.status_code, 200)
-
- # put, should have same behavior TODO: comment does not match code
- response = self.client.post(url, data=TEST_DEMOGRAPHICS_DOCS[0]['content'], content_type='text/xml')
+ # put
+ response = self.client.put(url, data=TEST_DEMOGRAPHICS_DOCS[0]['content'], content_type='text/xml')
self.assertEquals(response.status_code, 200)
def test_get_record_info(self):

0 comments on commit 092d282

Please sign in to comment.