예제 #1
0
    def test_no_verbatim(self):
        self.require_feature('GNOME XSLT')
        r = self.pdf2djvu()
        r.assert_(stderr='''\
Entity: line 1: parser error : error parsing attribute name
<x:xmpmeta xmlns:x="adobe:ns:meta/"> <broken </x:xmpmeta>
                                             ^
Entity: line 1: parser error : attributes construct error
<x:xmpmeta xmlns:x="adobe:ns:meta/"> <broken </x:xmpmeta>
                                             ^
Entity: line 1: parser error : Couldn't find end of Start Tag broken line 1
<x:xmpmeta xmlns:x="adobe:ns:meta/"> <broken </x:xmpmeta>
                                             ^
''')
        xmp = self.extract_xmp()
        assert_grep(xmp, '<broken')
예제 #2
0
 def test_no_verbatim(self):
     self.require_feature('GNOME XSLT')
     self.pdf2djvu().assert_()
     xmp = self.extract_xmp()
     assert_well_formed_xml(xmp)
     assert_grep(xmp, '>image/vnd.djvu<')
예제 #3
0
 def test_verbatim(self):
     self.pdf2djvu('--verbatim-metadata').assert_()
     xmp = self.extract_xmp()
     assert_well_formed_xml(xmp)
     assert_grep(xmp, '>application/pdf<')
예제 #4
0
 def test_verbatim(self):
     self.pdf2djvu('--verbatim-metadata').assert_()
     xmp = self.extract_xmp()
     assert_grep(xmp, '<broken')