Zim unitest Test Report

678 tests run
22 skipped
1 errors
41 failures


ERROR: testMoveCaseSensitive (tests.newfs.TestLocalFS)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/newfs.py", line 561, in testMoveCaseSensitive
    re = file.moveto(root.file('FOO.txt'))
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/newfs/local.py", line 128, in moveto
    raise FileExistsError(other)
zim.newfs.base.FileExistsError: File or folder already exists: /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestLocalFS_testMoveCaseSensitive_testMoveCaseSensitive/FOO.txt


FAIL: testImageFile (tests.newfs.TestLocalFS)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/newfs.py", line 789, in testImageFile
    self.assertIn(file.mimetype(), ('image/png', 'image/x-png'))
AssertionError: 'text/plain' not found in ('image/png', 'image/x-png')


FAIL: testGetMimeType (tests.applications.TestApplicationManager)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/applications.py", line 136, in testGetMimeType
    self.assertEqual(get_mimetype(obj), mimetype)
AssertionError: 'text/plain' != 'image/png'
- text/plain
+ image/png



FAIL: runTest (tests.applications.TestXDGMimeInfo)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/applications.py", line 35, in runTest
    self.assertIsInstance(desc, str)
AssertionError: None is not an instance of <class 'str'>


FAIL: testFormat (tests.formats.TestWikiFormat)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/formats.py", line 98, in testFormat
    self.assertMultiLineEqual(result.tostring(), self.reference_xml)
AssertionError: '<?xm[2235 chars]<img src="./foobar.png" height="50" />\n<img s[3075 chars]ree>' != '<?xm[2235 chars]<img height="50" src="./foobar.png" />\n<img a[3075 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
  <zim-tree><h level="1">Head 1</h>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
  eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
  ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
  aliquip ex ea commodo consequat. Duis aute irure dolor in
  reprehenderit in voluptate velit esse cillum dolore eu fugiat
  nulla pariatur.  Excepteur sint occaecat cupidatat non proident,
  sunt in culpa qui officia deserunt mollit anim id est laborum.
  </p>
  <p><div indent="1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
  eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
  ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
  aliquip ex ea commodo consequat. Duis aute irure dolor in
  reprehenderit in voluptate velit esse cillum dolore eu fugiat
  nulla pariatur.  Excepteur sint occaecat cupidatat non proident,
  sunt in culpa qui officia deserunt mollit anim id est laborum.
  </div></p>
  <h level="2">head 2</h>
  
  <p><strong>bold</strong>, <emphasis>italic</emphasis> and <mark>underline</mark> and <code>verbatim</code>
  and also <strike>strike through</strike>
  </p>
  <p>This is not formatted: *bold*, /italic/ / * *^%#@#$#!@)_!)_ &amp; &lt;&gt; ""
  </p>
  <p>Some sub- and superscript like x<sup>2</sup> and H<sub>2</sub>O
  </p>
  <p>And some empty space here:
  </p>
  
  
  <h level="3">head 3</h>
  <p><link href="foo">foo</link>  links to page in the current namespace or parents
  <link href=":foo">:foo</link> links to page in the root namespace
  <link href="+foo">+foo</link> links to page in a subnamespace
  <link href="foo">bar</link> links to "foo" but display "bar"
  </p>
  <p><link href=":foo:bar">:foo:bar</link> <link href="./file.png">./file.png</link> <link href="file:///etc/passwd">file:///etc/passwd</link>
  <link href="Foo">Foo</link><link href="Bar">Bar</link>
  </p>
  <p><link href="mailto:foo@bar.org">mailto:foo@bar.org</link>
  <link href="wp?Test">wp?Test</link>
  </p>
  <p>External links like <link href="http://nongnu.org">http://nongnu.org</link> and <link href="foo@bar.org">foo@bar.org</link> are also supported
  </p>
  <p>[not:a:link]
  </p>
  
  <p><img src="./foobar.png" />
- <img src="./foobar.png" height="50" />
+ <img height="50" src="./foobar.png" />
- <img src="../my-image.png" width="600" alt="Foo Bar" />
?                                        --------------
+ <img alt="Foo Bar" src="../my-image.png" width="600" />
?     ++++++++++++++
- <img src="my-image.png" href="Foo" />
- <img src="../my-image.png" href=":foo:bar" width="600" alt="Foo Bar" />
+ <img href="Foo" src="my-image.png" />
+ <img alt="Foo Bar" href=":foo:bar" src="../my-image.png" width="600" />
  </p>
  <p><object src="./equation001.png" type="image+equation" /> This equation has a source .tex file
  <object src="./equation002.png" type="image+equation" /> for this one it is missing
  </p>
  <p>{./Not/an/image.png}
  </p>
  <p>Tags: <tag name="foo">@foo</tag> <tag name="bar">@bar</tag>
  </p>
  
  <h level="4">head 4</h>
  
  <p><ul><li bullet="*">item 1</li><li bullet="*">item 2</li><li bullet="*">item 3</li><ul><li bullet="*">item a</li><li bullet="*">item b</li></ul><li bullet="*">item 4</li></ul></p>
  
  <p>Indented list:
  <ul indent="1"><li bullet="*">item 1</li><li bullet="*">item 2</li><li bullet="*">item 3</li><ul><li bullet="*">item a</li><li bullet="*">item b</li></ul><li bullet="*">item 4</li></ul></p>
  
  <p>TODO list:
  <ul><li bullet="unchecked-box">foo</li><li bullet="checked-box">bar</li><ul><li bullet="checked-box">sub item 1</li><ul><li bullet="*">Some normal bullet</li></ul><li bullet="checked-box">sub item 2</li></ul><li bullet="xchecked-box">baz</li></ul></p>
  <p><ul><li bullet="migrated-box">Migrated checkbox</li></ul></p>
  <p>A numbered list:
  <ol start="1"><li>foo</li><li>bar</li><ol start="a"><li>sub list</li><li>here</li></ol><li>hmmm</li></ol></p>
  
  <p>Start with number other that 1/a/A
  </p>
  <p><ol start="C"><li>foo</li><li>bar</li><ol start="3"><li>sub item start with 3</li></ol><li>baz</li></ol></p>
  <h level="5">head 5</h>
  <p><emphasis>some verbatim blocks</emphasis>:
  </p>
  <pre>Sing, O goddess, the rage of
  Achilles son of Peleus, that
  brought countless ills upon
  the Achaeans.
  </pre>
  <pre indent="1">Sing, O goddess, the rage of
  Achilles son of Peleus, that
  brought countless ills upon
  the Achaeans.
  </pre>
  <pre indent="1">def foo(self, bar, baz):
  	'''Some doc string here
  	@param bar: value for bar
  	@param baz: value for baz
  	@returns: foo
  	'''
  	returen "foo" + bar % baz
  </pre>
  <h level="2">Internationalization</h>
  
  <h level="3">中文</h>
  <p>This section has a chinese heading
  </p>
  <p>Lines below are in right to left script:
  </p>
  <p>חדו"א
  מד"ר
  מכניקת מוצקים 2
  A line in English, should be left aligned.
  דינמיקה
  </p>
  <p>aaa
  </p>
  
  <h level="2">Some Objects</h>
  
  <object lang="python" linenumbers="true" type="code">def dump():
  	for i in range(1, 5):
  		print i
  </object>
  
  <object foo="bar" type="nonexistingobjecttype">Sing, O goddess, the rage of
  Achilles son of Peleus, that
  brought countless ills upon
  the Achaeans.
  </object>
  <h level="2">A table</h>
  
  <table aligns="center,right,left" wraps="1,0,1"><thead><th>H1</th><th>H2 h2</th><th>H3</th></thead><trow><td>Column A1</td><td>Column A2</td><td>a</td></trow><trow><td>a very long cell</td><td><strong>bold text</strong></td><td>b</td></trow><trow><td>hyperlinks</td><td><link href="wp?wiki">wp?wiki</link></td><td><link href="http://x.org">Xorg</link></td></trow></table>
  <p>====
  This is not a header
  </p>
  <p>That's all ...
  </p></zim-tree>


FAIL: testTagsView (tests.indexviews.TestTagsView)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/indexviews.py", line 320, in testTagsView
    self.assertEqual([t.name for t in mytags], ['tag1', 'tag2'])
AssertionError: Lists differ: ['tag2', 'tag1'] != ['tag1', 'tag2']

First differing element 0:
'tag2'
'tag1'

- ['tag2', 'tag1']
+ ['tag1', 'tag2']


FAIL: runTest (tests.widgets.TestLinkEntry)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/widgets.py", line 251, in runTest
    TestPageEntry.runTest(self)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/widgets.py", line 226, in runTest
    self.assertEqual([r[0] for r in self.completion_model], wanted)
AssertionError: Lists differ: [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test'] != [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']

First differing element 0:
':žžž'
':Bar'

- [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test']
?  --------

+ [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']
?                                               ++++++++



FAIL: runTest (tests.widgets.TestNamespaceEntry)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/widgets.py", line 242, in runTest
    TestPageEntry.runTest(self)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/widgets.py", line 226, in runTest
    self.assertEqual([r[0] for r in self.completion_model], wanted)
AssertionError: Lists differ: [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test'] != [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']

First differing element 0:
':žžž'
':Bar'

- [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test']
?  --------

+ [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']
?                                               ++++++++



FAIL: runTest (tests.widgets.TestPageEntry)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/widgets.py", line 226, in runTest
    self.assertEqual([r[0] for r in self.completion_model], wanted)
AssertionError: Lists differ: [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test'] != [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']

First differing element 0:
':žžž'
':Bar'

- [':žžž', ':Bar', ':Maßnahmen', ':Placeholder', ':Test']
?  --------

+ [':Bar', ':Maßnahmen', ':Placeholder', ':Test', ':žžž']
?                                               ++++++++



FAIL: testAddBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1892, in testAddBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[45 chars]tree raw="True"><li indent="0" bullet="*"> foo</li></zim-tree>' != '<?xm[45 chars]tree raw="True"><li bullet="*" indent="0"> foo</li></zim-tree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li></zim-tree>?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li></zim-tree>?                          +++++++++++



FAIL: testAddCheckbox (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1961, in testAddCheckbox
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[57 chars]ue"><li indent="0" bullet="unchecked-box"> foo</li></zim-tree>' != '<?xm[57 chars]ue"><li bullet="unchecked-box" indent="0"> foo</li></zim-tree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="unchecked-box"> foo</li></zim-tree>?                         -----------
+ <zim-tree raw="True"><li bullet="unchecked-box" indent="0"> foo</li></zim-tree>?                                                +++++++++++



FAIL: testAddNumberedBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1930, in testAddNumberedBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[46 chars]ree raw="True"><li indent="0" bullet="1."> foo</li></zim-tree>' != '<?xm[46 chars]ree raw="True"><li bullet="1." indent="0"> foo</li></zim-tree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo</li></zim-tree>?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo</li></zim-tree>?                                     +++++++++++



FAIL: testAddNumberedSubBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1942, in testAddNumberedSubBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo</li>\n<li ind[36 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo</li>\n<li bul[36 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> bar</li></zim-tree>?    -----------
+ <li bullet="a." indent="1"> bar</li></zim-tree>?                +++++++++++



FAIL: testAddNumberedSubBulletAtTopOfSublist (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1954, in testAddNumberedSubBulletAtTopOfSublist
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo</li>\n<li ind[36 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo</li>\n<li bul[36 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> bar</li></zim-tree>?    -----------
+ <li bullet="a." indent="1"> bar</li></zim-tree>?                +++++++++++



FAIL: testAddSubBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1904, in testAddSubBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[34 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[34 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="*"> bar</li></zim-tree>?               -----------
+ <li bullet="*" indent="1"> bar</li></zim-tree>?    +++++++++++



FAIL: testAddSubBulletAtBottomOfSublist (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1923, in testAddSubBulletAtBottomOfSublist
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[72 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[72 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="*"> bar</li>
+ <li bullet="*" indent="1"> bar</li>
- <li indent="0" bullet="*"> next</li></zim-tree>?               -----------
+ <li bullet="*" indent="0"> next</li></zim-tree>?    +++++++++++



FAIL: testAddSubBulletAtTopOfSublist (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1916, in testAddSubBulletAtTopOfSublist
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[34 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[34 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="*"> bar</li></zim-tree>?               -----------
+ <li bullet="*" indent="1"> bar</li></zim-tree>?    +++++++++++



FAIL: testAddSubCheckbox (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1977, in testAddSubCheckbox
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[46 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[46 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="unchecked-box"> bar</li></zim-tree>?    -----------
+ <li bullet="unchecked-box" indent="1"> bar</li></zim-tree>?                           +++++++++++



FAIL: testAddSubCheckboxAtTopOfSublist (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1993, in testAddSubCheckboxAtTopOfSublist
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[46 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[46 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="unchecked-box"> bar</li></zim-tree>?    -----------
+ <li bullet="unchecked-box" indent="1"> bar</li></zim-tree>?                           +++++++++++



FAIL: testRemoveEmptyBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1898, in testRemoveEmptyBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[31 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[31 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="0" bullet="*"> </li></zim-tree>+ <li bullet="*" indent="0"> </li></zim-tree>


FAIL: testRemoveEmptyCheckbox (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1971, in testRemoveEmptyCheckbox
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="unchecked-box"> foo</l[55 chars]ree>' != '<?xm[60 chars]><li bullet="unchecked-box" indent="0"> foo</l[55 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="unchecked-box"> foo</li>
?                         -----------
+ <zim-tree raw="True"><li bullet="unchecked-box" indent="0"> foo</li>
?                                                +++++++++++
- <li indent="0" bullet="unchecked-box"> </li></zim-tree>?    -----------
+ <li bullet="unchecked-box" indent="0"> </li></zim-tree>?                           +++++++++++



FAIL: testRemoveEmptyNumberedBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1936, in testRemoveEmptyNumberedBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo</li>\n<li ind[33 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo</li>\n<li bul[33 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo</li>
?                                     +++++++++++
- <li indent="0" bullet="2."> </li></zim-tree>?    -----------
+ <li bullet="2." indent="0"> </li></zim-tree>?                +++++++++++



FAIL: testRemoveEmptyNumberedSubBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1948, in testRemoveEmptyNumberedSubBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo</li>\n<li ind[71 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo</li>\n<li bul[71 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> bar</li>
+ <li bullet="a." indent="1"> bar</li>
- <li indent="1" bullet="b."> </li></zim-tree>?    -----------
+ <li bullet="b." indent="1"> </li></zim-tree>?                +++++++++++



FAIL: testRemoveEmptySubBullet (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1910, in testRemoveEmptySubBullet
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[68 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[68 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="*"> bar</li>
- <li indent="1" bullet="*"> </li></zim-tree>+ <li bullet="*" indent="1"> bar</li>
+ <li bullet="*" indent="1"> </li></zim-tree>


FAIL: testRemoveEmptySubCheckbox (tests.pageview.TestDoEndOfLine)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1987, in testRemoveEmptySubCheckbox
    self.assertInsertNewLine(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1863, in assertInsertNewLine
    self._assertInsertNewLine(input, wanted, line)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1873, in _assertInsertNewLine
    self.assertBufferEquals(self.buffer, input) # Ensure we got what we asked
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="*"> foo</li>\n<li inde[92 chars]ree>' != '<?xm[60 chars]><li bullet="*" indent="0"> foo</li>\n<li bull[92 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="*"> foo</li>
?                                    -----------
+ <zim-tree raw="True"><li bullet="*" indent="0"> foo</li>
?                          +++++++++++
- <li indent="1" bullet="unchecked-box"> bar</li>
?    -----------
+ <li bullet="unchecked-box" indent="1"> bar</li>
?                           +++++++++++
- <li indent="1" bullet="unchecked-box"> </li></zim-tree>?    -----------
+ <li bullet="unchecked-box" indent="1"> </li></zim-tree>?                           +++++++++++



FAIL: testBulletLists (tests.pageview.TestLists)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1206, in testBulletLists
    self.assertEqual(tree.tostring(), input) # just a sanity check
AssertionError: '<?xm[67 chars]n<li indent="0" bullet="*"> Foo</li>\n<li inde[236 chars]ree>' != '<?xm[67 chars]n<li bullet="*" indent="0"> Foo</li>\n<li bull[236 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
  <zim-tree raw="True">Dusss
- <li indent="0" bullet="*"> Foo</li>
- <li indent="0" bullet="*"> Bar</li>
- <li indent="1" bullet="*"> Bar 1</li>
- <li indent="2" bullet="*"> Bar 1.1</li>
- <li indent="1" bullet="*"> Bar 2</li>
- <li indent="1" bullet="*"> Bar 3</li>
- <li indent="0" bullet="*"> Baz</li>
+ <li bullet="*" indent="0"> Foo</li>
+ <li bullet="*" indent="0"> Bar</li>
+ <li bullet="*" indent="1"> Bar 1</li>
+ <li bullet="*" indent="2"> Bar 1.1</li>
+ <li bullet="*" indent="1"> Bar 2</li>
+ <li bullet="*" indent="1"> Bar 3</li>
+ <li bullet="*" indent="0"> Baz</li>
  Tja
  </zim-tree>


FAIL: testReNumberList (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 648, in testReNumberList
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="2."> foo bar</li>\n<li[88 chars]ree>' != '<?xm[60 chars]><li bullet="2." indent="0"> foo bar</li>\n<li[88 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="2."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="2." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="0" bullet="3."> foo bar</li>
- <li indent="0" bullet="4."> foo bar</li>
+ <li bullet="3." indent="0"> foo bar</li>
+ <li bullet="4." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterIndentBottom (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 786, in testReNumberListAfterIndentBottom
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="1" bullet="b."> foo bar</li>
- <li indent="1" bullet="c."> foo bar</li>
- <li indent="0" bullet="2."> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="b." indent="1"> foo bar</li>
+ <li bullet="c." indent="1"> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterIndentMiddle (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 750, in testReNumberListAfterIndentMiddle
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="1" bullet="b."> foo bar</li>
- <li indent="1" bullet="c."> foo bar</li>
- <li indent="0" bullet="2."> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="b." indent="1"> foo bar</li>
+ <li bullet="c." indent="1"> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterIndentTop (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 714, in testReNumberListAfterIndentTop
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="1" bullet="b."> foo bar</li>
- <li indent="1" bullet="c."> foo bar</li>
- <li indent="0" bullet="2."> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="b." indent="1"> foo bar</li>
+ <li bullet="c." indent="1"> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterUnIndentBottom (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 804, in testReNumberListAfterUnIndentBottom
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="1" bullet="b."> foo bar</li>
- <li indent="0" bullet="2."> foo bar</li>
- <li indent="0" bullet="3."> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="b." indent="1"> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
+ <li bullet="3." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterUnIndentDoesNotTouchCheckbox (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 879, in testReNumberListAfterUnIndentDoesNotTouchCheckbox
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[152 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[152 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="0" bullet="unchecked-box"> foo bar</li>
?    -----------
+ <li bullet="unchecked-box" indent="0"> foo bar</li>
?                           +++++++++++
- <li indent="1" bullet="unchecked-box"> foo bar</li>
?    -----------
+ <li bullet="unchecked-box" indent="1"> foo bar</li>
?                           +++++++++++
- <li indent="0" bullet="2."> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterUnIndentMiddle (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 768, in testReNumberListAfterUnIndentMiddle
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="0" bullet="2."> foo bar</li>
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="0" bullet="3."> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="3." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListAfterUnIndentTop (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 732, in testReNumberListAfterUnIndentTop
    self.assertBufferEquals(
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="1."> foo bar</li>\n<li[172 chars]ree>' != '<?xm[60 chars]><li bullet="1." indent="0"> foo bar</li>\n<li[172 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="1."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="1." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="0" bullet="2."> foo bar</li>
- <li indent="1" bullet="a."> foo bar</li>
- <li indent="1" bullet="b."> foo bar</li>
- <li indent="0" bullet="3."> foo bar</li>
+ <li bullet="2." indent="0"> foo bar</li>
+ <li bullet="a." indent="1"> foo bar</li>
+ <li bullet="b." indent="1"> foo bar</li>
+ <li bullet="3." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListWithBullet (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 664, in testReNumberListWithBullet
    self.assertBufferEquals(	# Raw content
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="2."> foo bar</li>\n<li[87 chars]ree>' != '<?xm[60 chars]><li bullet="2." indent="0"> foo bar</li>\n<li[87 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="2."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="2." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="0" bullet="*"> foo bar</li>
- <li indent="0" bullet="7."> foo bar</li>
+ <li bullet="*" indent="0"> foo bar</li>
+ <li bullet="7." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testReNumberListWithCheckbox (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 689, in testReNumberListWithCheckbox
    self.assertBufferEquals(	# Raw content
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 142, in assertBufferEquals
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[60 chars]><li indent="0" bullet="2."> foo bar</li>\n<li[99 chars]ree>' != '<?xm[60 chars]><li bullet="2." indent="0"> foo bar</li>\n<li[99 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
- <zim-tree raw="True"><li indent="0" bullet="2."> foo bar</li>
?                          -----------
+ <zim-tree raw="True"><li bullet="2." indent="0"> foo bar</li>
?                                     +++++++++++
- <li indent="0" bullet="unchecked-box"> foo bar</li>
?    -----------
+ <li bullet="unchecked-box" indent="0"> foo bar</li>
?                           +++++++++++
- <li indent="0" bullet="7."> foo bar</li>
+ <li bullet="7." indent="0"> foo bar</li>
  </zim-tree>


FAIL: testVarious (tests.pageview.TestTextBuffer)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 221, in testVarious
    self.assertEqual(rawtree.tostring(), input)
AssertionError: '<?xm[217 chars]n<li indent="0" bullet="*"> Foo</li>\n<li inde[36 chars]ree>' != '<?xm[217 chars]n<li bullet="*" indent="0"> Foo</li>\n<li bull[36 chars]ree>'
  <?xml version='1.0' encoding='utf-8'?>
  <zim-tree raw="True">
  foo<h level="1">bar</h>baz
  
  dus <pre>ja</pre> hmm
  
  <h level="2">foo
  </h>bar
  
  dus <div indent="5">ja</div> <emphasis>hmm
  dus ja
  </emphasis>grrr
  
- <li indent="0" bullet="*"> Foo</li>
- <li indent="0" bullet="*"> Bar</li>
+ <li bullet="*" indent="0"> Foo</li>
+ <li bullet="*" indent="0"> Bar</li>
  </zim-tree>


FAIL: testTyping (tests.pageview.TestTextView)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/pageview.py", line 1510, in testTyping
    self.assertEqual(tree.tostring(), wanted)
AssertionError: '<?xm[50 chars]raw="True">aaa\n<li indent="0" bullet="*"> foo</li></zim-tree>' != '<?xm[50 chars]raw="True">aaa\n<li bullet="*" indent="0"> foo</li></zim-tree>'
  <?xml version='1.0' encoding='utf-8'?>
  <zim-tree raw="True">aaa
- <li indent="0" bullet="*"> foo</li></zim-tree>?               -----------
+ <li bullet="*" indent="0"> foo</li></zim-tree>?    +++++++++++



FAIL: testOpenAttachmentsFolderExisting (tests.uiactions.TestUIActionsRealFile)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 574, in _open_with
    entry.spawn((uri,), callback=callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 407, in spawn
    raise NotImplementedError('WebBrowser can not handle callback')
NotImplementedError: WebBrowser can not handle callback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 924, in testOpenAttachmentsFolderExisting
    self.uiactions.open_attachments_folder()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/actions.py", line 98, in func
    return self.func(instance, *args, **kwargs)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/uiactions.py", line 337, in open_attachments_folder
    open_folder_prompt_create(self.widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 497, in open_folder_prompt_create
    open_folder(widget, folder)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 518, in open_folder
    open_file(widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 488, in open_file
    _open_with_filebrowser(widget, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 581, in _open_with_filebrowser
    _open_with(widget, entry, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 576, in _open_with
    entry.spawn((uri,)) # E.g. webbrowser module does not support callback
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 415, in spawn
    TEST_MODE_RUN_CB((self.__class__.__name__, url))
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/__init__.py", line 513, in _callback
    return handler(cmd) # need to return for pipe()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 920, in open_folder
    self.assertEqual(cmd[-1], folder.path)
AssertionError: 'file:///Users/sandrobraun/Programme_src/z[91 chars]Test' != '/Users/sandrobraun/Programme_src/zim-desk[84 chars]Test'
- file:///Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenAttachmentsFolderExisting_notebook/Test
? -------
+ /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenAttachmentsFolderExisting_notebook/Test



FAIL: testOpenAttachmentsFolderNonExisting (tests.uiactions.TestUIActionsRealFile)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 497, in open_folder_prompt_create
    open_folder(widget, folder)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 518, in open_folder
    open_file(widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 468, in open_file
    raise FileNotFoundError(file)
zim.newfs.base.FileNotFoundError: No such file or folder: /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenAttachmentsFolderNonExisting_notebook/Test

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 574, in _open_with
    entry.spawn((uri,), callback=callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 407, in spawn
    raise NotImplementedError('WebBrowser can not handle callback')
NotImplementedError: WebBrowser can not handle callback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 938, in testOpenAttachmentsFolderNonExisting
    self.uiactions.open_attachments_folder()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/actions.py", line 98, in func
    return self.func(instance, *args, **kwargs)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/uiactions.py", line 337, in open_attachments_folder
    open_folder_prompt_create(self.widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 506, in open_folder_prompt_create
    open_folder(widget, folder)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 518, in open_folder
    open_file(widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 488, in open_file
    _open_with_filebrowser(widget, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 581, in _open_with_filebrowser
    _open_with(widget, entry, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 576, in _open_with
    entry.spawn((uri,)) # E.g. webbrowser module does not support callback
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 415, in spawn
    TEST_MODE_RUN_CB((self.__class__.__name__, url))
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/__init__.py", line 513, in _callback
    return handler(cmd) # need to return for pipe()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 934, in open_folder
    self.assertEqual(cmd[-1], folder.path)
AssertionError: 'file:///Users/sandrobraun/Programme_src/z[94 chars]Test' != '/Users/sandrobraun/Programme_src/zim-desk[87 chars]Test'
- file:///Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenAttachmentsFolderNonExisting_notebook/Test
? -------
+ /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenAttachmentsFolderNonExisting_notebook/Test



FAIL: testOpenDocumentRoot (tests.uiactions.TestUIActionsRealFile)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 574, in _open_with
    entry.spawn((uri,), callback=callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 407, in spawn
    raise NotImplementedError('WebBrowser can not handle callback')
NotImplementedError: WebBrowser can not handle callback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 957, in testOpenDocumentRoot
    self.uiactions.open_document_root()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/actions.py", line 98, in func
    return self.func(instance, *args, **kwargs)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/uiactions.py", line 354, in open_document_root
    open_folder_prompt_create(self.widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 497, in open_folder_prompt_create
    open_folder(widget, folder)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 518, in open_folder
    open_file(widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 488, in open_file
    _open_with_filebrowser(widget, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 581, in _open_with_filebrowser
    _open_with(widget, entry, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 576, in _open_with
    entry.spawn((uri,)) # E.g. webbrowser module does not support callback
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 415, in spawn
    TEST_MODE_RUN_CB((self.__class__.__name__, url))
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/__init__.py", line 513, in _callback
    return handler(cmd) # need to return for pipe()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 953, in open_folder
    self.assertEqual(cmd[-1], self.notebook.document_root.path)
AssertionError: 'file:///Users/sandrobraun/Programme_src/z[64 chars]Root' != '/Users/sandrobraun/Programme_src/zim-desk[57 chars]Root'
- file:///Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenDocumentRoot
? -------
+ /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenDocumentRoot



FAIL: testOpenNotebookFolder (tests.uiactions.TestUIActionsRealFile)

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 574, in _open_with
    entry.spawn((uri,), callback=callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 407, in spawn
    raise NotImplementedError('WebBrowser can not handle callback')
NotImplementedError: WebBrowser can not handle callback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 945, in testOpenNotebookFolder
    self.uiactions.open_notebook_folder()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/actions.py", line 98, in func
    return self.func(instance, *args, **kwargs)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/uiactions.py", line 342, in open_notebook_folder
    open_folder(self.widget, self.notebook.folder)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 518, in open_folder
    open_file(widget, dir)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 488, in open_file
    _open_with_filebrowser(widget, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 581, in _open_with_filebrowser
    _open_with(widget, entry, file, callback)
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/gui/applications.py", line 576, in _open_with
    entry.spawn((uri,)) # E.g. webbrowser module does not support callback
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/zim/applications.py", line 415, in spawn
    TEST_MODE_RUN_CB((self.__class__.__name__, url))
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/__init__.py", line 513, in _callback
    return handler(cmd) # need to return for pipe()
  File "/Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/uiactions.py", line 942, in open_folder
    self.assertEqual(cmd[-1], self.notebook.folder.path)
AssertionError: 'file:///Users/sandrobraun/Programme_src/z[75 chars]book' != '/Users/sandrobraun/Programme_src/zim-desk[68 chars]book'
- file:///Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenNotebookFolder_notebook
? -------
+ /Users/sandrobraun/Programme_src/zim-desktop-wiki/tests/tmp/TestUIActionsRealFile_testOpenNotebookFolder_notebook