def test_generate_url_with_none(self):
     base_url = "http://test.test.com"
     expected = base_url
     self.assertEquals(http_utils.generate_url(base_url, None), expected)
 def test_generate_url(self):
     base_url = "http://mega.co.hz"
     params = {"first": 1, "second": "2"}
     expected_url = "http://mega.co.hz?second=2&first=1"
     new_url = http_utils.generate_url(base_url, params)
     self.assertEquals(new_url, expected_url)