def test_bazaar_simple_urls():
 http_bzr_repo = Bazaar(url='bzr+http://bzr.myproject.org/MyProject/trunk/#egg=MyProject')
 https_bzr_repo = Bazaar(url='bzr+https://bzr.myproject.org/MyProject/trunk/#egg=MyProject')
 ssh_bzr_repo = Bazaar(url='bzr+ssh://bzr.myproject.org/MyProject/trunk/#egg=MyProject')
 ftp_bzr_repo = Bazaar(url='bzr+ftp://bzr.myproject.org/MyProject/trunk/#egg=MyProject')
 sftp_bzr_repo = Bazaar(url='bzr+sftp://bzr.myproject.org/MyProject/trunk/#egg=MyProject')
 launchpad_bzr_repo = Bazaar(url='bzr+lp:MyLaunchpadProject#egg=MyLaunchpadProject')
 assert (http_bzr_repo.get_url_rev() == ('http://bzr.myproject.org/MyProject/trunk/', None))
 assert (https_bzr_repo.get_url_rev() == ('https://bzr.myproject.org/MyProject/trunk/', None))
 assert (ssh_bzr_repo.get_url_rev() == ('bzr+ssh://bzr.myproject.org/MyProject/trunk/', None))
 assert (ftp_bzr_repo.get_url_rev() == ('ftp://bzr.myproject.org/MyProject/trunk/', None))
 assert (sftp_bzr_repo.get_url_rev() == ('sftp://bzr.myproject.org/MyProject/trunk/', None))
 assert (launchpad_bzr_repo.get_url_rev() == ('lp:MyLaunchpadProject', None))

def test_bazaar_simple_urls ( ) : http_bzr_repo = Bazaar ( url = 'bzr+http://bzr.myproject.org/MyProject/trunk/#egg=MyProject' ) https_bzr_repo = Bazaar ( url = 'bzr+https://bzr.myproject.org/MyProject/trunk/#egg=MyProject' ) ssh_bzr_repo = Bazaar ( url = 'bzr+ssh://bzr.myproject.org/MyProject/trunk/#egg=MyProject' ) ftp_bzr_repo = Bazaar ( url = 'bzr+ftp://bzr.myproject.org/MyProject/trunk/#egg=MyProject' ) sftp_bzr_repo = Bazaar ( url = 'bzr+sftp://bzr.myproject.org/MyProject/trunk/#egg=MyProject' ) launchpad_bzr_repo = Bazaar ( url = 'bzr+lp:MyLaunchpadProject#egg=MyLaunchpadProject' ) assert ( http_bzr_repo . get_url_rev ( ) == ( 'http://bzr.myproject.org/MyProject/trunk/' , None ) ) assert ( https_bzr_repo . get_url_rev ( ) == ( 'https://bzr.myproject.org/MyProject/trunk/' , None ) ) assert ( ssh_bzr_repo . get_url_rev ( ) == ( 'bzr+ssh://bzr.myproject.org/MyProject/trunk/' , None ) ) assert ( ftp_bzr_repo . get_url_rev ( ) == ( 'ftp://bzr.myproject.org/MyProject/trunk/' , None ) ) assert ( sftp_bzr_repo . get_url_rev ( ) == ( 'sftp://bzr.myproject.org/MyProject/trunk/' , None ) ) assert ( launchpad_bzr_repo . get_url_rev ( ) == ( 'lp:MyLaunchpadProject' , None ) )
test bzr url support .