def assertResultContains(self, result, expected):
        for (key, value) in expected.items():
            found = False
            try:
                found = value == result[key]
            except __HOLE__:
                if result.has_key('meta'):
                    found = value == result['meta'][key]
            self.assertEqual(True, found)
dataset/ETHPy150Open aparo/pyes/pyes/tests.py/ESTestCase.assertResultContains