

def test_include(self):
    res = _(['hello', 'world', 'foo', 'bar']).include('foo')
    self.assertTrue(res, 'include was not true')
    res = _(['hello', 'world', 'foo', 'bar']).include('notin')
    self.assertFalse(res, 'include was not false')

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