def test_get_download_url(self):
    url = firefox_details.get_download_url('OS X', 'pt-BR', '17.0.1')
    self.assertListEqual(parse_qsl(urlparse(url).query), [('product', 'firefox-17.0.1-SSL'), ('os', 'osx'), ('lang', 'pt-BR')])
    url = firefox_details.get_download_url('Linux 64', 'en-US', '17.0.1')
    self.assertListEqual(parse_qsl(urlparse(url).query), [('product', 'firefox-17.0.1-SSL'), ('os', 'linux64'), ('lang', 'en-US')])
def test_get_download_url(self):
    url = firefox_details.get_download_url('OS X', 'pt-BR', '17.0.1')
    self.assertListEqual(parse_qsl(urlparse(url).query), [('product', 'firefox-17.0.1-SSL'), ('os', 'osx'), ('lang', 'pt-BR')])
    url = firefox_details.get_download_url('Linux 64', 'en-US', '17.0.1')
    self.assertListEqual(parse_qsl(urlparse(url).query), [('product', 'firefox-17.0.1-SSL'), ('os', 'linux64'), ('lang', 'en-US')])