I am writing a test for a post view. It does work, But when I try and post to it with APIClient.post, I get QueryDict: {}. Here is the test:
class SMSCreateData(APITestCase):
...
def test_SMS(self):
...
postData = {'Body': string, 'From': phNum.phone_number}
self.client.post(reverse('SMS-data'), postData)
And here is the view:
def SMSSubmitDataPointView(request):
...
try:
print request.POST
...