def test_setDefinition(self):
     activity = Activity()
     activity.definition = ActivityDefinition()
     self.assertIsInstance(activity.definition, ActivityDefinition)
Exemplo n.º 2
0
 def test_setDefinition(self):
     activity = Activity()
     activity.definition = ActivityDefinition()
     self.assertIsInstance(activity.definition, ActivityDefinition)
 def test_setDefinitionException(self):
     activity = Activity()
     with self.assertRaises(AttributeError):
         activity.definition = {"invalid": "definition"}
Exemplo n.º 4
0
 def test_setDefinitionException(self):
     activity = Activity()
     with self.assertRaises(AttributeError):
         activity.definition = {"invalid": "definition"}