def test_parse_rev0(self): """ Parsing the output of 'svn info --xml' for revision 0. """ d = svnclient.parse_svn_info_xml(svn_info_xml_rev0) eq_(d['url'], 'file:///home/foo/bar') eq_(d['repos_url'], 'file:///home/foo/bar') eq_(d['revision'], 0)
def test_parse(self): """ Parsing the output of 'svn info --xml'. """ d = svnclient.parse_svn_info_xml(svn_info_xml) eq_(d['url'], 'svn://svn.twistedmatrix.com/svn/Twisted/trunk') eq_(d['repos_url'], 'svn://svn.twistedmatrix.com/svn/Twisted') eq_(d['revision'], 20191) eq_(d['last_changed_rev'], 20185)