def test_multi_item(self): """Function: test_multi_item Description: Test with multiple items in list. Arguments: """ self.assertEqual(gen_libs.list_2_dict(self.list2), self.dict2)
def test_multi_keys(self): """Function: test_multi_keys Description: Test with multiple items for same key. Arguments: """ self.assertEqual(gen_libs.list_2_dict(self.list3), self.dict3)
def test_empty_list(self): """Function: test_empty_list Description: Test with empty list. Arguments: """ self.assertEqual(gen_libs.list_2_dict(self.list0), self.dict0)
def test_field_del(self): """Function: test_field_del Description: Test with different field delimiter. Arguments: """ self.assertEqual(gen_libs.list_2_dict(self.list4, ":"), self.dict1)
def test_one_item(self): """Function: test_one_item Description: Test with one item in list. Arguments: """ self.assertEqual(gen_libs.list_2_dict(self.list1), self.dict1)