def do_list(self, arguments): """shows a list of all remotes""" print "Remote repositories:" for url in Remote.all(): print " %s" % url try: Remote(url).download("INDEX.xml") except NetworkException: print " INACCESSIBLE" print
def testItShouldConstructAValidDownloadPathIfNoTrailingSlashIsGiven(self): assert Remote("http://myremote.com").buildPath( "INDEX") == "http://myremote.com/INDEX"