def test_value_and_name(self):
    "\n        confirm that both 'name' and 'value' columns of choice list work\n        "
    for name_alias in ['name', 'value']:
        self.assertPyxformXform(name='aliases', md=('\n                | survey  |               |                |            |\n                |         | type          | name           | label      |\n                |         | select_one yn | q1             | Question 1 |\n                | choices |               |                |            |\n                |         | list name     | %(name_alias)s | label      |\n                |         | yn            | yes            | Yes        |\n                |         | yn            | no             | No         |\n                ' % {u'name_alias': name_alias}), instance__contains=['<q1/>'], model__contains=['<bind nodeset="/aliases/q1" type="select1"/>'], xml__contains=['<select1 ref="/aliases/q1">', '<value>yes</value>', '<value>no</value>', '</select1>'])
confirm that both 'name' and 'value' columns of choice list work
def test_value_and_name(self):
    "\n        \n        "
    for name_alias in ['name', 'value']:
        self.assertPyxformXform(name='aliases', md=('\n                | survey  |               |                |            |\n                |         | type          | name           | label      |\n                |         | select_one yn | q1             | Question 1 |\n                | choices |               |                |            |\n                |         | list name     | %(name_alias)s | label      |\n                |         | yn            | yes            | Yes        |\n                |         | yn            | no             | No         |\n                ' % {u'name_alias': name_alias}), instance__contains=['<q1/>'], model__contains=['<bind nodeset="/aliases/q1" type="select1"/>'], xml__contains=['<select1 ref="/aliases/q1">', '<value>yes</value>', '<value>no</value>', '</select1>'])