def test_valid_response(self):
        data = self.get_valid_data()
        response = self.client.post(self.url, data=data)
        self.assertEqual(response.status_code, 200)
        results = json.loads(response.content.decode('utf-8'))
        self.assertTrue(results['valid'])
        self.assertFalse('error' in results)
        self.assertEqual(results['html'], "{0}".format(date.today().year))
Rendered content should be given in the response.
dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/PreviewTestCase.test_valid_response