|
|
|
@ -1595,6 +1595,7 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
'section': 'user', |
|
|
|
|
'type': 'array', |
|
|
|
|
'value': ['foo', 'bar'], |
|
|
|
|
'choices': ['foo', 'bar', 'oink', 'boink'], |
|
|
|
|
'machine': 'any', |
|
|
|
|
} |
|
|
|
|
tdir = os.path.join(self.unit_test_dir, '19 array option') |
|
|
|
@ -1621,6 +1622,7 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
'section': 'user', |
|
|
|
|
'type': 'array', |
|
|
|
|
'value': ['foo', 'bar'], |
|
|
|
|
'choices': ['foo', 'bar', 'oink', 'boink'], |
|
|
|
|
'machine': 'any', |
|
|
|
|
} |
|
|
|
|
tdir = os.path.join(self.unit_test_dir, '19 array option') |
|
|
|
@ -1647,6 +1649,7 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
'section': 'user', |
|
|
|
|
'type': 'array', |
|
|
|
|
'value': [], |
|
|
|
|
'choices': ['foo', 'bar', 'oink', 'boink'], |
|
|
|
|
'machine': 'any', |
|
|
|
|
} |
|
|
|
|
tdir = os.path.join(self.unit_test_dir, '19 array option') |
|
|
|
@ -1703,7 +1706,7 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
if item['name'] == 'combo': |
|
|
|
|
self.assertEqual(item['value'], 'b') |
|
|
|
|
self.assertEqual(item['choices'], ['b', 'c', 'd']) |
|
|
|
|
elif item['name'] == 'arr': |
|
|
|
|
elif item['name'] == 'array': |
|
|
|
|
self.assertEqual(item['value'], ['b']) |
|
|
|
|
self.assertEqual(item['choices'], ['b', 'c', 'd']) |
|
|
|
|
|
|
|
|
@ -1721,7 +1724,7 @@ class AllPlatformTests(BasePlatformTests): |
|
|
|
|
if item['name'] == 'combo': |
|
|
|
|
self.assertEqual(item['value'], 'c') |
|
|
|
|
self.assertEqual(item['choices'], ['b', 'c', 'd']) |
|
|
|
|
elif item['name'] == 'arr': |
|
|
|
|
elif item['name'] == 'array': |
|
|
|
|
self.assertEqual(item['value'], ['b', 'c']) |
|
|
|
|
self.assertEqual(item['choices'], ['b', 'c', 'd']) |
|
|
|
|
|
|
|
|
|