def test_basic_ok(self): self.assertEqual( repository.get_repo_url('osrf','prerelease', self.config), 'http://prerelease-' + repository.get_linux_distro())
def test_no_type(self): with self.assertRaises(SystemExit) as cm: repository.get_repo_url('osrf','invalid_tye', self.config)
def test_no_repo(self): with self.assertRaises(SystemExit): repository.get_repo_url('invalid_repo', 'invalid_type', self.config)