Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
test_web.TestMakeSelection Class Reference

List of all members.

Public Member Functions

def testMakeSelectNoSelection
def testMakeSelectNoSelection2
def testMakeSelectWithSelectedItem

Static Public Attributes

tuple values = ('one', 'two', 'simple', ('complex', 'A tuple & <escaped text>'))
tuple expected

Detailed Description

util.web: creating html select

Definition at line 49 of file

Member Function Documentation

util.web: creating html select with no selection

Definition at line 64 of file

00065     def testMakeSelectNoSelection(self):
00066         """util.web: creating html select with no selection"""
00067         expected = self.expected
00068         result = unicode(web.makeSelection('test', self.values, size=1))
00069         assert result == expected

util.web: creating html select with non existing selection

Definition at line 70 of file

00071     def testMakeSelectNoSelection2(self):
00072         """util.web: creating html select with non existing selection"""
00073         expected = self.expected
00074         result = unicode(web.makeSelection('test', self.values, 'three', size=1))
00075         assert result == expected

util.web: creating html select with selected item

Definition at line 76 of file

00077     def testMakeSelectWithSelectedItem(self):
00078         """util.web: creating html select with selected item"""
00079         expected = self.expected.replace('value="two"', 'selected value="two"')
00080         result = unicode(web.makeSelection('test', self.values, 'two', size=1))
00081         assert result == expected

Member Data Documentation

Initial value:
        u'<select name="test" size="1">'
        u'<option value="one">one</option>'
        u'<option value="two">two</option>'
        u'<option value="simple">simple</option>'
        u'<option value="complex">A tuple &amp; &lt;escaped text&gt;</option>'

Definition at line 55 of file

tuple test_web.TestMakeSelection.values = ('one', 'two', 'simple', ('complex', 'A tuple & <escaped text>')) [static]

Definition at line 52 of file

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