'Determines if the given response data (dict) matches the specified course.'

def assertValidResponseCourse(self, data, course):

    course_key = course.id
    self.assertEqual(data['id'], unicode(course_key))
    self.assertEqual(data['name'], course.display_name)
    self.assertEqual(data['course'], course_key.course)
    self.assertEqual(data['org'], course_key.org)
    self.assertEqual(data['run'], course_key.run)
    uri = self.build_absolute_url(reverse('course_structure_api:v0:detail', kwargs={'course_id': unicode(course_key)}))
    self.assertEqual(data['uri'], uri)
