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' })
def test__parse_descriptor_float(self): descriptor = "test: 123.3" params = XML2XLSXTarget._parse_descriptor(descriptor) self.assertEquals(params, {'test': 123.3})
def test__parse_descriptor_string(self): descriptor = "test: abc" params = XML2XLSXTarget._parse_descriptor(descriptor) self.assertEquals(params, {'test': 'abc'})
def test__parse_descriptor_bool(self): descriptor = "test: True" params = XML2XLSXTarget._parse_descriptor(descriptor) self.assertEquals(params, {'test': True})