def METHOD_NAME(self):
    ip_address = '10.0.0.0'
    user_agent = 'UnitTest/1.0'
    client_id_header = '123.123'
    factory = RequestFactory(
        REMOTE_ADDR=ip_address, HTTP_USER_AGENT=user_agent, HTTP_X_EDX_GA_CLIENT_ID=client_id_header
    )
    request = factory.get('/some-path')
    context = self.get_context_for_request(request)
    self.assert_dict_subset(context, {
        'ip': ip_address,
        'agent': user_agent,
        'client_id': client_id_header
    })