def test_delete_route_table(virtual_network_client, delete_and_wait_patch):
    route_table = get_route_table()
    module = get_module(dict(rt_id='ocid.routetable..xvdz'))
    delete_and_wait_patch.return_value = dict(changed=True,
                                              route_table=to_dict(route_table))
    result = oci_route_table.delete_route_table(virtual_network_client, module)
    assert result['changed'] is True
def test_delete_route_table_rt_not_exists(virtual_network_client,
                                          delete_and_wait_patch):
    module = get_module(dict(rt_id='ocid.routetable..xvdz'))
    delete_and_wait_patch.return_value = dict(changed=False, route_table='')
    result = oci_route_table.delete_route_table(virtual_network_client, module)
    assert result['changed'] is False