Ejemplo n.º 1
0
    def test_canceledApplicationCannotBeApproved(self):
        application = Application('*****@*****.**', 'Barbijos', 'Técnicos', None)
        application.cancel()

        with self.assertRaises(StatusTransitionFailed):
            application.approve()
Ejemplo n.º 2
0
    def test_cancelApplication(self):
        application = Application('*****@*****.**', 'Barbijos', 'Técnicos', None)
        application.cancel()

        self.assertEqual(application.status, 'Canceled')