'Make sure that the LocaleNegotiationMixin detects locales.'

def test_it_works(self):

    factory = RequestFactory()
    negotiater = api_utils.LocaleNegotiationMixin()
    request = factory.get('/', HTTP_ACCEPT_LANGUAGE='es,en-US')
    negotiater.request = request
    eq_(negotiater.get_locale(), 'es')
