コード例 #1
0
 def test_description_setter(self):
   textObject = TextObject("Test", "Test")
   textObject.description = "None"
   self.assertEqual(textObject.description, "None")
コード例 #2
0
 def test_description_setter_Empty_String(self):
   textObject = TextObject("Test","Test")
   with self.assertRaises(EmptyStringException):
     textObject.description=""