예제 #1
0
    def finished(self):
        if not self.filename:
            return

        body = element_to_str(self.convert_to_xml(), encoding='utf8')

        handle = open(self.filename, 'w')
        handle.write(body.decode('utf8'))
        handle.close()
예제 #2
0
파일: xunit.py 프로젝트: stackedsax/Specter
    def finished(self):
        if not self.filename:
            return

        body = element_to_str(self.convert_to_xml(), encoding='utf8')

        handle = open(self.filename, 'w')
        handle.write('{0}'.format(body))
        handle.close()
예제 #3
0
파일: xunit.py 프로젝트: stackedsax/Specter
 def __str__(self):
     return element_to_str(self.convert_to_xml(), encoding='utf8')
예제 #4
0
 def __str__(self):
     return element_to_str(self.convert_to_xml(), encoding='utf8')