'Test that some minimum of information is formatted
correctly in the response to get_students_features.'

def test_get_students_features(self):

    for student in self.students:
        student.profile.city = 'Mos    Eisley    {}'.format(student.id)
        student.profile.save()
    url = reverse('get_students_features', kwargs={'course_id': self.course.id.to_deprecated_string()})
    response = self.client.post(url, {})
    res_json = json.loads(response.content)
    self.assertIn('students', res_json)
    for student in self.students:
        student_json = [x for x in res_json['students'] if (x['username'] == student.username)][0]
        self.assertEqual(student_json['username'], student.username)
        self.assertEqual(student_json['email'], student.email)
        self.assertEqual(student_json['city'], student.profile.city)
        self.assertEqual(student_json['country'], '')
