def test_tag_include_all(self):
        instance = {
            'include': [],
            'exclude': [
                'docker_image:ubuntu',
                'docker_image:debian',
            ],
        }

        klass = get_check_class('docker')
        # NO-OP but loads the check
        with patch.object(klass, '_find_cgroup', _mocked_find_cgroup):
            check = klass('docker', {}, {})

        check._prepare_filters(instance)
        self.assertEquals(len(instance['exclude_patterns']), 2)
        self.assertEquals(len(instance['include_patterns']), 0)

        truth_table_exclusion = {
            'some_tag': False,
            'debian:ubuntu': False,
            'docker_image:centos': False,
            'docker_image:ubuntu': True,
            'docker_image:debian': True,
        }

        for tag, val in truth_table_exclusion.iteritems():
            self.assertEquals(
                check._is_container_excluded(instance, [tag]),
                val,
                "{0} expected {1} but is not".format(tag, val)
            )
exclude all, except ubuntu and debian.
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/mock/test_docker.py/DockerCheckTest.test_tag_include_all