def test_inject_already_has(self):
     url = download._inject_credentials("http://*****:*****@www.isotoma.com/", "john", "password")
     self.assertEquals(url, "http://*****:*****@www.isotoma.com/")
 def test_inject_nothing_already_has_creds(self):
     url = download._inject_credentials("http://*****:*****@www.isotoma.com/")
     self.assertEquals(url, "http://*****:*****@www.isotoma.com/")
 def test_inject(self):
     url = download._inject_credentials("http://www.isotoma.com/", "andy", "penguin55")
     self.assertEquals(url, "http://*****:*****@www.isotoma.com/")
 def test_inject_nothing(self):
     url = download._inject_credentials("http://www.isotoma.com/")
     self.assertEquals(url, "http://www.isotoma.com/")