This function is used to iterate the key list and check that key is present in the given dictionary :param key_list: :param target_dict: :return:
(key_list, target_dict)
| 756 | |
| 757 | |
| 758 | def is_key_exists(key_list, target_dict): |
| 759 | """ |
| 760 | This function is used to iterate the key list and check that key is |
| 761 | present in the given dictionary |
| 762 | :param key_list: |
| 763 | :param target_dict: |
| 764 | :return: |
| 765 | """ |
| 766 | for key in key_list: |
| 767 | if key in target_dict: |
| 768 | return key |
| 769 | |
| 770 | return None |
| 771 | |
| 772 | |
| 773 | def _check_key_in_source_target(key, acl_keys, target, source): |
no outgoing calls
no test coverage detected