Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin._tests.test_wikiutil.TestQueryStringSupport Class Reference

List of all members.

Public Member Functions

def testParseQueryString
def testMakeQueryString

Static Public Attributes

list tests

Detailed Description

Definition at line 17 of file

Member Function Documentation

Definition at line 29 of file

00030     def testMakeQueryString(self):
00031         for qstr, in_str, in_unicode in self.tests:
00032             assert wikiutil.parseQueryString(wikiutil.makeQueryString(in_unicode)) == MultiDict(in_unicode)
00033             assert wikiutil.parseQueryString(wikiutil.makeQueryString(in_str)) == MultiDict(in_unicode)

Definition at line 24 of file

00025     def testParseQueryString(self):
00026         for qstr, expected_str, expected_unicode in self.tests:
00027             assert wikiutil.parseQueryString(qstr) == MultiDict(expected_unicode)
00028             assert wikiutil.parseQueryString(unicode(qstr)) == MultiDict(expected_unicode)

Member Data Documentation

Initial value:
        ('', {}, {}),
        ('key1=value1', {'key1': 'value1'}, {'key1': u'value1'}),
        ('key1=value1&key2=value2', {'key1': 'value1', 'key2': 'value2'}, {'key1': u'value1', 'key2': u'value2'}),
        ('rc_de=Aktuelle%C3%84nderungen', {'rc_de': 'Aktuelle\xc3\x84nderungen'}, {'rc_de': u'Aktuelle\xc4nderungen'}),

Definition at line 18 of file

The documentation for this class was generated from the following file: