fix #93
This commit is contained in:
parent
a5e1dcc225
commit
fcc4cd63b4
@ -1,6 +1,6 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import division, print_function
|
from __future__ import division, print_function, unicode_literals
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
@ -48,7 +48,7 @@ class TestMigration(unittest.TestCase):
|
|||||||
db = SQLite3(xxx.name, Config.load(None))
|
db = SQLite3(xxx.name, Config.load(None))
|
||||||
WordPress(db, xml).migrate()
|
WordPress(db, xml).migrate()
|
||||||
|
|
||||||
self.assertEqual(db.threads["/2014/test/"]["title"], "Hello, World!")
|
self.assertEqual(db.threads["/2014/test/"]["title"], "Hello, World…")
|
||||||
self.assertEqual(db.threads["/2014/test/"]["id"], 1)
|
self.assertEqual(db.threads["/2014/test/"]["id"], 1)
|
||||||
|
|
||||||
self.assertEqual(db.threads["/?p=4"]["title"], "...")
|
self.assertEqual(db.threads["/?p=4"]["title"], "...")
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
-->
|
-->
|
||||||
<channel>
|
<channel>
|
||||||
<item>
|
<item>
|
||||||
<title>Hello, World!</title>
|
<title>Hello, World…</title>
|
||||||
<link>http://example.tld/2014/test/</link>
|
<link>http://example.tld/2014/test/</link>
|
||||||
<pubDate>Tue, 14 Jan 2014 17:31:03 +0000</pubDate>
|
<pubDate>Tue, 14 Jan 2014 17:31:03 +0000</pubDate>
|
||||||
<dc:creator><![CDATA[Tester]]></dc:creator>
|
<dc:creator><![CDATA[Tester]]></dc:creator>
|
||||||
|
Loading…
Reference in New Issue
Block a user