'Assert that the course_id will be in the form fields, if available'

def test_course_id_field(self):

    resp = self.client.get(reverse('course_survey', kwargs={'course_id': unicode(self.course.id)}))
    self.assertEqual(resp.status_code, 200)
    expected = '<input    type="hidden"    name="course_id"    value="{course_id}"    />'.format(course_id=unicode(self.course.id))
    self.assertContains(resp, expected)
