def test_eod_cancel(self): cancel_policy = EODCancel() self.assertTrue(cancel_policy.should_cancel(SESSION_END)) self.assertFalse(cancel_policy.should_cancel(BAR))
def test_eod_cancel(self): cancel_policy = EODCancel() self.assertTrue(cancel_policy.should_cancel(DAY_END)) self.assertFalse(cancel_policy.should_cancel(BAR))
def test_eod_cancel(): cancel_policy = EODCancel() assert cancel_policy.should_cancel(SESSION_END) assert not cancel_policy.should_cancel(BAR)