def test_set_description(self): my_device = ADevice(self.DEVICE_NAME, self.DEVICE_DESCRIPTION) my_device.set_description(self.MODIFIED_DESCRIPTION) self.assertEqual(my_device.get_description(), self.MODIFIED_DESCRIPTION)
def test_description_less_constructor(self): my_device = ADevice(self.DEVICE_NAME) self.assertEqual(my_device.get_name(), self.DEVICE_NAME) self.assertEqual(my_device.get_description(), self.EMPTY_DESCRIPTION)