示例#1
0
    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
示例#2
0
 def testItShouldConstructAValidDownloadPathIfNoTrailingSlashIsGiven(self):
     assert Remote("http://myremote.com").buildPath(
         "INDEX") == "http://myremote.com/INDEX"