def test_filter_builds_by_locale_name(self):
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), 'ujara')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'Gujarati')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), u'જરા')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'Gujarati')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), 'british english')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'English (British)')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), u'French, Français')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'French')
def test_filter_builds_by_locale_name(self):
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), 'ujara')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'Gujarati')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), u'જરા')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'Gujarati')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), 'british english')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'English (British)')
    builds = firefox_details.get_filtered_full_builds(firefox_details.latest_version('release'), u'French, Français')
    eq_(len(builds), 1)
    eq_(builds[0]['name_en'], 'French')