def test_should_expand(self, cfg):
    cl_1 = Classifier(action=0, cfg=cfg)
    cl_2 = Classifier(action=1, numerosity=2, cfg=cfg)
    cl_3 = Classifier(action=2, numerosity=3, cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    expanded = population.expand()
    assert (len(expanded) == 6)
    assert (cl_1 in expanded)
    assert (cl_2 in expanded)
    assert (cl_3 in expanded)
def test_should_expand(self, cfg):
    cl_1 = Classifier(action=0, cfg=cfg)
    cl_2 = Classifier(action=1, numerosity=2, cfg=cfg)
    cl_3 = Classifier(action=2, numerosity=3, cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    expanded = population.expand()
    assert (len(expanded) == 6)
    assert (cl_1 in expanded)
    assert (cl_2 in expanded)
    assert (cl_3 in expanded)