Exemplo n.º 1
0
 def test_iterable_to_str_1(self):
     """Test invalid"""
     from EDL import iterable_to_str, DemistoException
     with pytest.raises(DemistoException):
         invalid_list_value = 2
         iterable_to_str(invalid_list_value)
Exemplo n.º 2
0
 def test_iterable_to_str_2(self):
     """Test empty"""
     from EDL import iterable_to_str
     assert iterable_to_str(None) == ''
     assert iterable_to_str([]) == ''
     assert iterable_to_str({}) == ''