Ejemplo n.º 1
0
 def test_valid_rule(self):
     rule = QuerySetRule(
         drip=self.drip,
         field_name='date_joined',
         lookup_type='lte',
         field_value='now-60 days',
     )
     rule.clean()
Ejemplo n.º 2
0
 def test_positive_days(self):
     rule = QuerySetRule(drip=self.drip, field_name="date_joined", lookup_type="lte", field_value="now+60 days")
     rule.clean()
Ejemplo n.º 3
0
 def test_valid_rule(self):
     rule = QuerySetRule(drip=self.drip, field_name='date_joined', lookup_type='lte', field_value='now-60 days')
     rule.clean()
Ejemplo n.º 4
0
 def test_positive_days(self):
     rule = QuerySetRule(drip=self.drip,
                         field_name='date_joined',
                         lookup_type='lte',
                         field_value='now+60 days')
     rule.clean()