'Test googleanalytics.visits_by_locale().'

@patch.object(googleanalytics, '_build_request')
def test_visitors_by_locale(self, _build_request):

    execute = _build_request.return_value.get.return_value.execute
    execute.return_value = VISITORS_BY_LOCALE_RESPONSE
    visits = googleanalytics.visitors_by_locale(date(2013, 1, 16), date(2013, 1, 16))
    eq_(58, len(visits))
    eq_(221447, visits['en-US'])
    eq_(24432, visits['es'])
