def test_status_noauthor(self): # 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, self.root)
def test_status_wrong_xml(self): # testing for XML without author - this used to raise an exception xml = u'<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, self.root) assert len(st.incomplete) == 1