

def test_include_dict(self):
    res = _({
        'foo': 'bar',
        'hello': 'world',
    }).include('bar')
    self.assertTrue(res, 'include was not true')
    res = _({
        'foo': 'bar',
        'hello': 'world',
    }).include('notin')
    self.assertFalse(res, 'include was not false')

dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py TestCollections.test_include_dict/original