def test_valid_rule(self): rule = QuerySetRule( drip=self.drip, field_name='date_joined', lookup_type='lte', field_value='now-60 days', ) rule.clean()
def test_positive_days(self): rule = QuerySetRule(drip=self.drip, field_name="date_joined", lookup_type="lte", field_value="now+60 days") rule.clean()
def test_valid_rule(self): rule = QuerySetRule(drip=self.drip, field_name='date_joined', lookup_type='lte', field_value='now-60 days') rule.clean()
def test_positive_days(self): rule = QuerySetRule(drip=self.drip, field_name='date_joined', lookup_type='lte', field_value='now+60 days') rule.clean()