def test_check_iterabel_range(): a = range(10) check.is_true(check_iterable(a))
def test_check_iterabel_nparray(): a = np.zeros(20) check.is_true(check_iterable(a))
def test_check_iterabel_number(): a = 10 check.is_false(check_iterable(a))
def test_check_iterabel_array(): a = [1, 2, 3, 4, 5] check.is_true(check_iterable(a))
def test_check_iterabel_string(): a = '12345' check.is_false(check_iterable(a))
def test_check_iterabel_dict(self): a = dict(a=1, b=2, c=3, d=4) assert_true(check_iterable(a)) assert_true(check_iterable(a.items())) assert_true(check_iterable(a.keys())) assert_true(check_iterable(a.values()))
def test_check_iterabel_dict(): a = dict(a=1, b=2, c=3, d=4) check.is_true(check_iterable(a)) check.is_true(check_iterable(a.items())) check.is_true(check_iterable(a.keys())) check.is_true(check_iterable(a.values()))
def test_check_iterabel_range(self): a = range(10) assert_true(check_iterable(a))
def test_check_iterabel_number(self): a = 10 assert_false(check_iterable(a))
def test_check_iterabel_nparray(self): a = np.zeros(20) assert_true(check_iterable(a))
def test_check_iterabel_string(self): a = '12345' assert_false(check_iterable(a))
def test_check_iterabel_array(self): a = [1, 2, 3, 4, 5] assert_true(check_iterable(a))