Пример #1
0
def test_check_iterabel_range():
    a = range(10)
    check.is_true(check_iterable(a))
Пример #2
0
def test_check_iterabel_nparray():
    a = np.zeros(20)
    check.is_true(check_iterable(a))
Пример #3
0
def test_check_iterabel_number():
    a = 10
    check.is_false(check_iterable(a))
Пример #4
0
def test_check_iterabel_array():
    a = [1, 2, 3, 4, 5]
    check.is_true(check_iterable(a))
Пример #5
0
def test_check_iterabel_string():
    a = '12345'
    check.is_false(check_iterable(a))
Пример #6
0
 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()))
Пример #7
0
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()))
Пример #8
0
 def test_check_iterabel_range(self):
     a = range(10)
     assert_true(check_iterable(a))
Пример #9
0
 def test_check_iterabel_number(self):
     a = 10
     assert_false(check_iterable(a))
Пример #10
0
 def test_check_iterabel_nparray(self):
     a = np.zeros(20)
     assert_true(check_iterable(a))
Пример #11
0
 def test_check_iterabel_string(self):
     a = '12345'
     assert_false(check_iterable(a))
Пример #12
0
 def test_check_iterabel_array(self):
     a = [1, 2, 3, 4, 5]
     assert_true(check_iterable(a))