def test_get_remote_url_private(self): payload = GithubPayload(self.sample_payload_private) self.assertEqual(payload.get_remote_url(), "https://github.com/octokitty/testing.git") self.assertEqual(payload.get_remote_url("bola"), "https://[email protected]/octokitty/testing.git") self.assertEqual(payload.get_remote_url("bola", "guda"), "https://*****:*****@github.com/octokitty/testing.git") self.assertEqual( payload.get_remote_url("bola@guda", "@@"), "https://bola%40guda:%40%[email protected]/octokitty/" "testing.git" )
def test_get_remote_url(self): payload = GithubPayload(self.sample_payload) self.assertEqual(payload.get_remote_url(), "https://github.com/octokitty/testing.git") self.assertEqual(payload.get_remote_url("bola"), "https://github.com/octokitty/testing.git") self.assertEqual(payload.get_remote_url("bola", "guda"), "https://github.com/octokitty/testing.git") self.assertEqual(payload.get_remote_url("bola@guda", "@@"), "https://github.com/octokitty/testing.git")