def classifier_test(self):
        player = self.player()
        classifier = dict()
        for key in ['stochastic',
                    'inspects_source', 'manipulates_source',
                    'manipulates_state']:
            classifier[key] = (any(t.classifier[key] for t in player.team))
        classifier['memory_depth'] = float('inf')

        for t in player.team:
            try:
                classifier['makes_use_of'].update(t.classifier['makes_use_of'])
            except __HOLE__:
                pass

        for key in classifier:
            self.assertEqual(player.classifier[key],
                             classifier[key],
                             msg="%s - Behaviour: %s != Expected Behaviour: %s" %
                             (key, player.classifier[key], classifier[key]))
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_meta.py/TestMetaPlayer.classifier_test