def test_should_form_match_set(self, cfg):
    cl_1 = Classifier(cfg=cfg)
    cl_2 = Classifier(condition='1###0###', cfg=cfg)
    cl_3 = Classifier(condition='0###1###', cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    p0 = Perception('11110000')
    match_set = ClassifiersList.form_match_set(population, p0)
    assert (len(match_set) == 2)
    assert (cl_1 in match_set)
    assert (cl_2 in match_set)
def test_should_form_match_set(self, cfg):
    cl_1 = Classifier(cfg=cfg)
    cl_2 = Classifier(condition='1###0###', cfg=cfg)
    cl_3 = Classifier(condition='0###1###', cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    p0 = Perception('11110000')
    match_set = ClassifiersList.form_match_set(population, p0)
    assert (len(match_set) == 2)
    assert (cl_1 in match_set)
    assert (cl_2 in match_set)