def METHOD_NAME(self):
    resp = convert_dicts(nested_dict, secondary_key="types")
    assert resp == [{"name": "TEST1", "types": {"action": "permit 1000:1000"}}, {"name": "TEST2", "types": {"action": "permit 2000:3000"}}]