def test_canceledApplicationCannotBeApproved(self): application = Application('*****@*****.**', 'Barbijos', 'Técnicos', None) application.cancel() with self.assertRaises(StatusTransitionFailed): application.approve()
def test_cancelApplication(self): application = Application('*****@*****.**', 'Barbijos', 'Técnicos', None) application.cancel() self.assertEqual(application.status, 'Canceled')