'POST some data to a view'

def test_post(self):

    post_data = {'value': 37}
    response = self.client.post('/post_view/', post_data)
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.context['data'], '37')
    self.assertEqual(response.templates[0].name, 'POST    Template')
    self.assertContains(response, 'Data    received')
