Beispiel #1
0
 def test_is_isterable_str(self):
     test = utils.is_iterable("1")
     expected = False
     self.assertEqual(test, expected)
Beispiel #2
0
 def test_is_isterable_dict(self):
     test = utils.is_iterable({1: 1})
     expected = True
     self.assertEqual(test, expected)
Beispiel #3
0
 def test_is_isterable_tuple(self):
     test = utils.is_iterable((1,))
     expected = True
     self.assertEqual(test, expected)
Beispiel #4
0
 def test_is_isterable_int(self):
     test = utils.is_iterable(1)
     expected = False
     self.assertEqual(test, expected)
Beispiel #5
0
 def test_is_isterable_list(self):
     test = utils.is_iterable([1])
     expected = True
     self.assertEqual(test, expected)