'If the Accept header is unsatisfiable we should return a 406 Not Acceptable response.'

def test_unsatisfiable_accept_header_on_request_returns_406_status(self):

    resp = self.client.get(u'/', HTTP_ACCEPT=u'foo/bar')
    self.assertEqual(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)
