def test_no_deactivation(self):
        tasks.activate_subscriptions(based_on_date=self.subscription.date_start)
        tasks.deactivate_subscriptions(based_on_date=self.subscription.date_end - datetime.timedelta(30))
        subscription = Subscription.objects.get(id=self.subscription.id)
        self.assertTrue(subscription.is_active)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/tests/test_models.py/TestSubscription.test_no_deactivation/original