- Timestamp:
- 14 Dec 2014, 15:56:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_helpers.py
r11949 r12230 582 582 info = helpers.get_meminfo(src="nOt-ExIsTiNg-FiLe") 583 583 assert info is None 584 585 class Html2dictTestCase(unittest.TestCase): 586 587 def test_html2dict(self): 588 assert helpers.html2dict(None) == {} 589 assert helpers.html2dict() == {} 590 assert helpers.html2dict(9) == {} 591 assert helpers.html2dict('Hello world') == { 592 'en': u'<div id="html">Hello world</div id="html">'} 593 assert helpers.html2dict('Hello world>>de<<Hallo Welt') == { 594 'de': u'<div id="html">Hallo Welt</div id="html">', 595 'en': u'<div id="html">Hello world</div id="html">'} 584 596 585 597 … … 603 615 MemInfoTestCase, 604 616 GetMemInfoTestCase, 617 Html2dictTestCase, 605 618 ]: 606 619 suite.addTests(
Note: See TracChangeset for help on using the changeset viewer.