def testConstructor(): """NotificationTest: Test Constructor""" note = Notification('TestNote', 5, 'TestNoteType') eq_(note.get_name(), 'TestNote') eq_(note.get_body(), 5) eq_(note.get_type(), 'TestNoteType')
def testBodyAccessors(): """NotificationTest: Test Body Accessors""" note = Notification(None) note.set_body(5) eq_(note.get_body(), 5)