示例#1
0
 def test_instantiating_generator(self, filter_specification_factory,
                                  specification_candidate): #pylint: disable=W0621
     gen = FilterSpecificationGenerator(filter_specification_factory)
     spec = gen.lt(number_attr=NUMBER_VALUE + 1) \
             & gen.gt(number_attr=NUMBER_VALUE - 1)
     assert spec.is_satisfied_by(specification_candidate)
 def test_instantiating_generator(self):
     gen = FilterSpecificationGenerator(get_filter_specification_factory())
     spec = gen.lt(number_attr=1) & gen.gt(number_attr= -1)
     self.assert_true(spec.is_satisfied_by(self.candidate))
 def test_instantiating_generator(self):
     gen = FilterSpecificationGenerator(get_filter_specification_factory())
     spec = gen.lt(number_attr=1) & gen.gt(number_attr=-1)
     self.assert_true(spec.is_satisfied_by(self.candidate))