Changeset 12433 for main/waeup.kofa/trunk/src/waeup/kofa/utils/tests
- Timestamp:
- 9 Jan 2015, 16:06:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py
r12231 r12433 595 595 'de': u'<div id="html">Hallo Welt</div id="html">', 596 596 'en': u'<div id="html">Hello world</div id="html">'} 597 598 599 class Rest2dictTestCase(unittest.TestCase): 600 601 def test_rest2dict(self): 602 assert helpers.rest2dict(None) == {} 603 assert helpers.rest2dict() == {} 604 assert helpers.rest2dict(9) == {} 605 assert helpers.rest2dict('Hello world') == { 606 'en': u'<div id="rest"><div class="document">\n\n\n<p>Hello world' 607 '</p>\n</div></div id="rest">'} 608 assert helpers.rest2dict('Hello world>>de<<Hallo Welt') == { 609 'de': u'<div id="rest"><div class="document">\n\n\n<p>Hallo Welt' 610 '</p>\n</div></div id="rest">', 611 'en': u'<div id="rest"><div class="document">\n\n\n<p>Hello world' 612 '</p>\n</div></div id="rest">'} 597 613 598 614 … … 617 633 GetMemInfoTestCase, 618 634 Html2dictTestCase, 635 Rest2dictTestCase, 619 636 ]: 620 637 suite.addTests(
Note: See TracChangeset for help on using the changeset viewer.