~ubuntu-branches/ubuntu/trusty/heat/trusty-security

« back to all changes in this revision

Viewing changes to heat/tests/test_parameters.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-03 09:43:04 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20131003094304-zhhr2brapzlpvjmm
Tags: upstream-2013.2~rc1
ImportĀ upstreamĀ versionĀ 2013.2~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
        schema = {'Type': 'CommaDelimitedList',
260
260
                  'AllowedValues': ['foo', 'bar', 'baz']}
261
261
        p = self.new_parameter('p', schema, 'baz,foo,bar')
262
 
        self.assertEqual(p.value(), 'baz,foo,bar')
 
262
        self.assertEqual(p.value(), 'baz,foo,bar'.split(','))
 
263
        schema['Default'] = []
 
264
        p = self.new_parameter('p', schema)
 
265
        self.assertEqual(p.value(), [])
 
266
        schema['Default'] = 'baz,foo,bar'
 
267
        p = self.new_parameter('p', schema)
 
268
        self.assertEqual(p.value(), 'baz,foo,bar'.split(','))
263
269
 
264
270
    def test_list_value_list_bad(self):
265
271
        schema = {'Type': 'CommaDelimitedList',