コード例 #1
0
ファイル: xunit.py プロジェクト: russellmacshane/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(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
ファイル: xunit.py プロジェクト: russellmacshane/Specter
 def __str__(self):
     return element_to_str(self.convert_to_xml(), encoding='utf8')