Ejemplo n.º 1
0
    def test_value_str(self):
        test_property = CharacterStringProperty('test string', 'random string',
                                                'gco:CharacterString')

        with self.assertRaises(TypeError):
            # list is not a valid data type
            test_property.value = ['20150607']
Ejemplo n.º 2
0
    def test_value_str(self):
        test_property = CharacterStringProperty(
            'test string',
            'random string',
            'gco:CharacterString'
        )

        with self.assertRaises(TypeError):
            # list is not a valid data type
            test_property.value = ['20150607']
    def test_value_str(self):
        test_property = CharacterStringProperty("test string", "random string", "gco:CharacterString")

        with self.assertRaises(TypeError):
            # list is not a valid data type
            test_property.value = ["20150607"]