def test_value_date(self): test_property = DateProperty("test name", QDate.currentDate(), "gco:Date") test_property.value = QDate.fromString("2015-06-07") with self.assertRaises(TypeError): test_property.value = 20150607
def test_value_date(self): test_property = DateProperty('test name', QDate.currentDate(), 'gco:Date') test_property.value = QDate.fromString('2015-06-07') with self.assertRaises(TypeError): test_property.value = 20150607
def test_value_date(self): test_property = DateProperty( 'test name', QDate.currentDate(), 'gco:Date' ) test_property.value = QDate.fromString('2015-06-07') with self.assertRaises(TypeError): test_property.value = 20150607