django tastypieで、postのテスト
from django.test import TestCase class SimpleTest(TestCase): jsonString = '{"name":"hello","country":"JPN"}' response = self.client.post('/api/v1/person/',data=jsonString, content_type='application/json') print "----" print response.content print "----"