Пример #1
0
 def test_parse_with_base_dir(self):
     """
     Parsing the output of 'svn st --xml' with an explicit base dir.
     """
     entries = svnclient.parse_svn_status_xml(
         svn_status_xml_with_base_dir, '/home/antoine/hgsvn')
     eq_(len(entries), 1)
     e = entries[0]
     eq_(e['path'], 'build')
     eq_(e['type'], 'unversioned')
Пример #2
0
 def test_parse_with_base_dir(self):
     """
     Parsing the output of 'svn st --xml' with an explicit base dir.
     """
     entries = svnclient.parse_svn_status_xml(svn_status_xml_with_base_dir,
                                              '/home/antoine/hgsvn')
     eq_(len(entries), 1)
     e = entries[0]
     eq_(e['path'], 'build')
     eq_(e['type'], 'unversioned')
Пример #3
0
 def test_parse(self):
     """
     Parsing the output of 'svn st --xml'.
     """
     entries = svnclient.parse_svn_status_xml(svn_status_xml)
     eq_(len(entries), 4)
     e = entries[0]
     eq_(e['path'], '_doc.html')
     eq_(e['type'], 'unversioned')
     e = entries[1]
     eq_(e['path'], 'ez_setup')
     eq_(e['type'], 'external')
     e = entries[2]
     eq_(e['path'], 'hgcreatesvn.py')
     eq_(e['type'], 'normal')
     e = entries[3]
     eq_(e['path'], 'hgsvn/svnclient.py')
     eq_(e['type'], 'normal')
Пример #4
0
 def test_parse(self):
     """
     Parsing the output of 'svn st --xml'.
     """
     entries = svnclient.parse_svn_status_xml(svn_status_xml)
     eq_(len(entries), 4)
     e = entries[0]
     eq_(e['path'], '_doc.html')
     eq_(e['type'], 'unversioned')
     e = entries[1]
     eq_(e['path'], 'ez_setup')
     eq_(e['type'], 'external')
     e = entries[2]
     eq_(e['path'], 'hgcreatesvn.py')
     eq_(e['type'], 'normal')
     e = entries[3]
     eq_(e['path'], 'hgsvn/svnclient.py')
     eq_(e['type'], 'normal')