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