+ self.failUnlessEqual(c.validate_url('rsync://other/tmp'), None)
+ self.failUnlessEqual(c.validate_url('http://localhost/tmp'), None)
+ # In the rsync process the URL gets a trailing '/' added to it
+ # But in the bot config its still slash-less.
+ # It is debatable when to add the trailing slash.
+ self.failUnlessEqual(
+ c.validate_url('rsync://localhost/tmp/sequencer_source'),
+ 'rsync://localhost/tmp/sequencer_source')
+ self.failUnlessEqual(
+ c.validate_url('rsync://localhost/tmp/sequencer_source/'),
+ 'rsync://localhost/tmp/sequencer_source/')
+ self.failUnlessEqual(
+ c.validate_url('rsync://localhost/tmp/sequencer_source/bleem'),
+ 'rsync://localhost/tmp/sequencer_source/bleem')