コード例 #1
0
 def test__parse_descriptor_multiple(self):
     descriptor = "test: True; test2: 1; test3: 3.0; test4: abc;"
     params = XML2XLSXTarget._parse_descriptor(descriptor)
     self.assertEquals(params, {
         'test': True,
         'test2': 1,
         'test3': 3.0,
         'test4': 'abc'
     })
コード例 #2
0
 def test__parse_descriptor_float(self):
     descriptor = "test: 123.3"
     params = XML2XLSXTarget._parse_descriptor(descriptor)
     self.assertEquals(params, {'test': 123.3})
コード例 #3
0
 def test__parse_descriptor_string(self):
     descriptor = "test:  abc"
     params = XML2XLSXTarget._parse_descriptor(descriptor)
     self.assertEquals(params, {'test': 'abc'})
コード例 #4
0
 def test__parse_descriptor_bool(self):
     descriptor = "test: True"
     params = XML2XLSXTarget._parse_descriptor(descriptor)
     self.assertEquals(params, {'test': True})