Esempio n. 1
0
 def test_status_noauthor(self, path1):
     # testing for XML without author - this used to raise an exception
     xml = """\
     <entry path="/tmp/pytest-23/wc">
     <wc-status item="normal" props="none" revision="0">
     <commit revision="0">
     <date>2008-08-19T16:50:53.400198Z</date>
     </commit>
     </wc-status>
     </entry>
     """
     XMLWCStatus.fromstring(xml, path1)
Esempio n. 2
0
 def test_status_noauthor(self, path1):
     # testing for XML without author - this used to raise an exception
     xml = '''\
     <entry path="/tmp/pytest-23/wc">
     <wc-status item="normal" props="none" revision="0">
     <commit revision="0">
     <date>2008-08-19T16:50:53.400198Z</date>
     </commit>
     </wc-status>
     </entry>
     '''
     XMLWCStatus.fromstring(xml, path1)
Esempio n. 3
0
 def test_status_wrong_xml(self, path1):
     # testing for XML without author - this used to raise an exception
     xml = '<entry path="/home/jean/zope/venv/projectdb/parts/development-products/DataGridField">\n<wc-status item="incomplete" props="none" revision="784">\n</wc-status>\n</entry>'
     st = XMLWCStatus.fromstring(xml, path1)
     assert len(st.incomplete) == 1
Esempio n. 4
0
 def test_status_wrong_xml(self, path1):
     # testing for XML without author - this used to raise an exception
     xml = '<entry path="/home/jean/zope/venv/projectdb/parts/development-products/DataGridField">\n<wc-status item="incomplete" props="none" revision="784">\n</wc-status>\n</entry>'
     st = XMLWCStatus.fromstring(xml, path1)
     assert len(st.incomplete) == 1