raise NotImplementedError if not implemented

This commit is contained in:
Steve Pulec 2013-02-22 07:55:48 -05:00
parent 27a086409e
commit 0bd4d57ef2
26 changed files with 125 additions and 125 deletions

View File

@ -6,5 +6,5 @@ from moto.ec2.utils import resource_ids_from_querystring
class AmazonDevPay(object):
def confirm_product_instance(self):
return NotImplemented
raise NotImplementedError('AmazonDevPay.confirm_product_instance is not yet implemented')

View File

@ -6,23 +6,23 @@ from moto.ec2.utils import resource_ids_from_querystring
class AMIs(object):
def create_image(self):
return NotImplemented
raise NotImplementedError('AMIs.create_image is not yet implemented')
def deregister_image(self):
return NotImplemented
raise NotImplementedError('AMIs.deregister_image is not yet implemented')
def describe_image_attribute(self):
return NotImplemented
raise NotImplementedError('AMIs.describe_image_attribute is not yet implemented')
def describe_images(self):
return NotImplemented
raise NotImplementedError('AMIs.describe_images is not yet implemented')
def modify_image_attribute(self):
return NotImplemented
raise NotImplementedError('AMIs.modify_image_attribute is not yet implemented')
def register_image(self):
return NotImplemented
raise NotImplementedError('AMIs.register_image is not yet implemented')
def reset_image_attribute(self):
return NotImplemented
raise NotImplementedError('AMIs.reset_image_attribute is not yet implemented')

View File

@ -6,8 +6,8 @@ from moto.ec2.utils import resource_ids_from_querystring
class AvailabilityZonesandRegions(object):
def describe_availability_zones(self):
return NotImplemented
raise NotImplementedError('AvailabilityZonesandRegions.describe_availability_zones is not yet implemented')
def describe_regions(self):
return NotImplemented
raise NotImplementedError('AvailabilityZonesandRegions.describe_regions is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class CustomerGateways(object):
def create_customer_gateway(self):
return NotImplemented
raise NotImplementedError('CustomerGateways(AmazonVPC).create_customer_gateway is not yet implemented')
def delete_customer_gateway(self):
return NotImplemented
raise NotImplementedError('CustomerGateways(AmazonVPC).delete_customer_gateway is not yet implemented')
def describe_customer_gateways(self):
return NotImplemented
raise NotImplementedError('CustomerGateways(AmazonVPC).describe_customer_gateways is not yet implemented')

View File

@ -6,14 +6,14 @@ from moto.ec2.utils import resource_ids_from_querystring
class DHCPOptions(object):
def associate_dhcp_options(self):
return NotImplemented
raise NotImplementedError('DHCPOptions(AmazonVPC).associate_dhcp_options is not yet implemented')
def create_dhcp_options(self):
return NotImplemented
raise NotImplementedError('DHCPOptions(AmazonVPC).create_dhcp_options is not yet implemented')
def delete_dhcp_options(self):
return NotImplemented
raise NotImplementedError('DHCPOptions(AmazonVPC).delete_dhcp_options is not yet implemented')
def describe_dhcp_options(self):
return NotImplemented
raise NotImplementedError('DHCPOptions(AmazonVPC).describe_dhcp_options is not yet implemented')

View File

@ -6,53 +6,53 @@ from moto.ec2.utils import resource_ids_from_querystring
class ElasticBlockStore(object):
def attach_volume(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.attach_volume is not yet implemented')
def copy_snapshot(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.copy_snapshot is not yet implemented')
def create_snapshot(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.create_snapshot is not yet implemented')
def create_volume(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.create_volume is not yet implemented')
def delete_snapshot(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.delete_snapshot is not yet implemented')
def delete_volume(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.delete_volume is not yet implemented')
def describe_snapshot_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.describe_snapshot_attribute is not yet implemented')
def describe_snapshots(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.describe_snapshots is not yet implemented')
def describe_volumes(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.describe_volumes is not yet implemented')
def describe_volume_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.describe_volume_attribute is not yet implemented')
def describe_volume_status(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.describe_volume_status is not yet implemented')
def detach_volume(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.detach_volume is not yet implemented')
def enable_volume_io(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.enable_volume_io is not yet implemented')
def import_volume(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.import_volume is not yet implemented')
def modify_snapshot_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.modify_snapshot_attribute is not yet implemented')
def modify_volume_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.modify_volume_attribute is not yet implemented')
def reset_snapshot_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticBlockStore.reset_snapshot_attribute is not yet implemented')

View File

@ -6,17 +6,17 @@ from moto.ec2.utils import resource_ids_from_querystring
class ElasticIPAddresses(object):
def allocate_address(self):
return NotImplemented
raise NotImplementedError('ElasticIPAddresses.allocate_address is not yet implemented')
def associate_address(self):
return NotImplemented
raise NotImplementedError('ElasticIPAddresses.associate_address is not yet implemented')
def describe_addresses(self):
return NotImplemented
raise NotImplementedError('ElasticIPAddresses.describe_addresses is not yet implemented')
def disassociate_address(self):
return NotImplemented
raise NotImplementedError('ElasticIPAddresses.disassociate_address is not yet implemented')
def release_address(self):
return NotImplemented
raise NotImplementedError('ElasticIPAddresses.release_address is not yet implemented')

View File

@ -6,26 +6,26 @@ from moto.ec2.utils import resource_ids_from_querystring
class ElasticNetworkInterfaces(object):
def attach_network_interface(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).attach_network_interface is not yet implemented')
def create_network_interface(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).create_network_interface is not yet implemented')
def delete_network_interface(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).delete_network_interface is not yet implemented')
def describe_network_interface_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).describe_network_interface_attribute is not yet implemented')
def describe_network_interfaces(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).describe_network_interfaces is not yet implemented')
def detach_network_interface(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).detach_network_interface is not yet implemented')
def modify_network_interface_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).modify_network_interface_attribute is not yet implemented')
def reset_network_interface_attribute(self):
return NotImplemented
raise NotImplementedError('ElasticNetworkInterfaces(AmazonVPC).reset_network_interface_attribute is not yet implemented')

View File

@ -6,5 +6,5 @@ from moto.ec2.utils import resource_ids_from_querystring
class General(object):
def get_console_output(self):
return NotImplemented
raise NotImplementedError('General.get_console_output is not yet implemented')

View File

@ -6,17 +6,17 @@ from moto.ec2.utils import resource_ids_from_querystring
class InternetGateways(object):
def attach_internet_gateway(self):
return NotImplemented
raise NotImplementedError('InternetGateways(AmazonVPC).attach_internet_gateway is not yet implemented')
def create_internet_gateway(self):
return NotImplemented
raise NotImplementedError('InternetGateways(AmazonVPC).create_internet_gateway is not yet implemented')
def delete_internet_gateway(self):
return NotImplemented
raise NotImplementedError('InternetGateways(AmazonVPC).delete_internet_gateway is not yet implemented')
def describe_internet_gateways(self):
return NotImplemented
raise NotImplementedError('InternetGateways(AmazonVPC).describe_internet_gateways is not yet implemented')
def detach_internet_gateway(self):
return NotImplemented
raise NotImplementedError('InternetGateways(AmazonVPC).detach_internet_gateway is not yet implemented')

View File

@ -6,8 +6,8 @@ from moto.ec2.utils import resource_ids_from_querystring
class IPAddresses(object):
def assign_private_ip_addresses(self):
return NotImplemented
raise NotImplementedError('IPAddresses.assign_private_ip_addresses is not yet implemented')
def unassign_private_ip_addresses(self):
return NotImplemented
raise NotImplementedError('IPAddresses.unassign_private_ip_addresses is not yet implemented')

View File

@ -6,14 +6,14 @@ from moto.ec2.utils import resource_ids_from_querystring
class KeyPairs(object):
def create_key_pair(self):
return NotImplemented
raise NotImplementedError('KeyPairs.create_key_pair is not yet implemented')
def delete_key_pair(self):
return NotImplemented
raise NotImplementedError('KeyPairs.delete_key_pair is not yet implemented')
def describe_key_pairs(self):
return NotImplemented
raise NotImplementedError('KeyPairs.describe_key_pairs is not yet implemented')
def import_key_pair(self):
return NotImplemented
raise NotImplementedError('KeyPairs.import_key_pair is not yet implemented')

View File

@ -6,8 +6,8 @@ from moto.ec2.utils import resource_ids_from_querystring
class Monitoring(object):
def monitor_instances(self):
return NotImplemented
raise NotImplementedError('Monitoring.monitor_instances is not yet implemented')
def unmonitor_instances(self):
return NotImplemented
raise NotImplementedError('Monitoring.unmonitor_instances is not yet implemented')

View File

@ -6,23 +6,23 @@ from moto.ec2.utils import resource_ids_from_querystring
class NetworkACLs(object):
def create_network_acl(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).create_network_acl is not yet implemented')
def create_network_acl_entry(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).create_network_acl_entry is not yet implemented')
def delete_network_acl(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).delete_network_acl is not yet implemented')
def delete_network_acl_entry(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).delete_network_acl_entry is not yet implemented')
def describe_network_acls(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).describe_network_acls is not yet implemented')
def replace_network_acl_association(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).replace_network_acl_association is not yet implemented')
def replace_network_acl_entry(self):
return NotImplemented
raise NotImplementedError('NetworkACLs(AmazonVPC).replace_network_acl_entry is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class PlacementGroups(object):
def create_placement_group(self):
return NotImplemented
raise NotImplementedError('PlacementGroups.create_placement_group is not yet implemented')
def delete_placement_group(self):
return NotImplemented
raise NotImplementedError('PlacementGroups.delete_placement_group is not yet implemented')
def describe_placement_groups(self):
return NotImplemented
raise NotImplementedError('PlacementGroups.describe_placement_groups is not yet implemented')

View File

@ -6,20 +6,20 @@ from moto.ec2.utils import resource_ids_from_querystring
class ReservedInstances(object):
def cancel_reserved_instances_listing(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.cancel_reserved_instances_listing is not yet implemented')
def create_reserved_instances_listing(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.create_reserved_instances_listing is not yet implemented')
def describe_reserved_instances(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.describe_reserved_instances is not yet implemented')
def describe_reserved_instances_listings(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.describe_reserved_instances_listings is not yet implemented')
def describe_reserved_instances_offerings(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.describe_reserved_instances_offerings is not yet implemented')
def purchase_reserved_instances_offering(self):
return NotImplemented
raise NotImplementedError('ReservedInstances.purchase_reserved_instances_offering is not yet implemented')

View File

@ -6,29 +6,29 @@ from moto.ec2.utils import resource_ids_from_querystring
class RouteTables(object):
def associate_route_table(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).associate_route_table is not yet implemented')
def create_route(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).create_route is not yet implemented')
def create_route_table(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).create_route_table is not yet implemented')
def delete_route(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).delete_route is not yet implemented')
def delete_route_table(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).delete_route_table is not yet implemented')
def describe_route_tables(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).describe_route_tables is not yet implemented')
def disassociate_route_table(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).disassociate_route_table is not yet implemented')
def replace_route(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).replace_route is not yet implemented')
def replace_route_table_association(self):
return NotImplemented
raise NotImplementedError('RouteTables(AmazonVPC).replace_route_table_association is not yet implemented')

View File

@ -6,23 +6,23 @@ from moto.ec2.utils import resource_ids_from_querystring
class SecurityGroups(object):
def authorize_security_group_egress(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.authorize_security_group_egress is not yet implemented')
def authorize_security_group_ingress(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.authorize_security_group_ingress is not yet implemented')
def create_security_group(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.create_security_group is not yet implemented')
def delete_security_group(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.delete_security_group is not yet implemented')
def describe_security_groups(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.describe_security_groups is not yet implemented')
def revoke_security_group_egress(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.revoke_security_group_egress is not yet implemented')
def revoke_security_group_ingress(self):
return NotImplemented
raise NotImplementedError('SecurityGroups.revoke_security_group_ingress is not yet implemented')

View File

@ -6,23 +6,23 @@ from moto.ec2.utils import resource_ids_from_querystring
class SpotInstances(object):
def cancel_spot_instance_requests(self):
return NotImplemented
raise NotImplementedError('SpotInstances.cancel_spot_instance_requests is not yet implemented')
def create_spot_datafeed_subscription(self):
return NotImplemented
raise NotImplementedError('SpotInstances.create_spot_datafeed_subscription is not yet implemented')
def delete_spot_datafeed_subscription(self):
return NotImplemented
raise NotImplementedError('SpotInstances.delete_spot_datafeed_subscription is not yet implemented')
def describe_spot_datafeed_subscription(self):
return NotImplemented
raise NotImplementedError('SpotInstances.describe_spot_datafeed_subscription is not yet implemented')
def describe_spot_instance_requests(self):
return NotImplemented
raise NotImplementedError('SpotInstances.describe_spot_instance_requests is not yet implemented')
def describe_spot_price_history(self):
return NotImplemented
raise NotImplementedError('SpotInstances.describe_spot_price_history is not yet implemented')
def request_spot_instances(self):
return NotImplemented
raise NotImplementedError('SpotInstances.request_spot_instances is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class Subnets(object):
def create_subnet(self):
return NotImplemented
raise NotImplementedError('Subnets(AmazonVPC).create_subnet is not yet implemented')
def delete_subnet(self):
return NotImplemented
raise NotImplementedError('Subnets(AmazonVPC).delete_subnet is not yet implemented')
def describe_subnets(self):
return NotImplemented
raise NotImplementedError('Subnets(AmazonVPC).describe_subnets is not yet implemented')

View File

@ -6,17 +6,17 @@ from moto.ec2.utils import resource_ids_from_querystring
class VirtualPrivateGateways(object):
def attach_vpn_gateway(self):
return NotImplemented
raise NotImplementedError('VirtualPrivateGateways(AmazonVPC).attach_vpn_gateway is not yet implemented')
def create_vpn_gateway(self):
return NotImplemented
raise NotImplementedError('VirtualPrivateGateways(AmazonVPC).create_vpn_gateway is not yet implemented')
def delete_vpn_gateway(self):
return NotImplemented
raise NotImplementedError('VirtualPrivateGateways(AmazonVPC).delete_vpn_gateway is not yet implemented')
def describe_vpn_gateways(self):
return NotImplemented
raise NotImplementedError('VirtualPrivateGateways(AmazonVPC).describe_vpn_gateways is not yet implemented')
def detach_vpn_gateway(self):
return NotImplemented
raise NotImplementedError('VirtualPrivateGateways(AmazonVPC).detach_vpn_gateway is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class VMExport(object):
def cancel_export_task(self):
return NotImplemented
raise NotImplementedError('VMExport.cancel_export_task is not yet implemented')
def create_instance_export_task(self):
return NotImplemented
raise NotImplementedError('VMExport.create_instance_export_task is not yet implemented')
def describe_export_tasks(self):
return NotImplemented
raise NotImplementedError('VMExport.describe_export_tasks is not yet implemented')

View File

@ -6,14 +6,14 @@ from moto.ec2.utils import resource_ids_from_querystring
class VMImport(object):
def cancel_conversion_task(self):
return NotImplemented
raise NotImplementedError('VMImport.cancel_conversion_task is not yet implemented')
def describe_conversion_tasks(self):
return NotImplemented
raise NotImplementedError('VMImport.describe_conversion_tasks is not yet implemented')
def import_instance(self):
return NotImplemented
raise NotImplementedError('VMImport.import_instance is not yet implemented')
def import_volume(self):
return NotImplemented
raise NotImplementedError('VMImport.import_volume is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class VPCs(object):
def create_vpc(self):
return NotImplemented
raise NotImplementedError('VPCs(AmazonVPC).create_vpc is not yet implemented')
def delete_vpc(self):
return NotImplemented
raise NotImplementedError('VPCs(AmazonVPC).delete_vpc is not yet implemented')
def describe_vpcs(self):
return NotImplemented
raise NotImplementedError('VPCs(AmazonVPC).describe_vpcs is not yet implemented')

View File

@ -6,11 +6,11 @@ from moto.ec2.utils import resource_ids_from_querystring
class VPNConnections(object):
def create_vpn_connection(self):
return NotImplemented
raise NotImplementedError('VPNConnections(AmazonVPC).create_vpn_connection is not yet implemented')
def delete_vpn_connection(self):
return NotImplemented
raise NotImplementedError('VPNConnections(AmazonVPC).delete_vpn_connection is not yet implemented')
def describe_vpn_connections(self):
return NotImplemented
raise NotImplementedError('VPNConnections(AmazonVPC).describe_vpn_connections is not yet implemented')

View File

@ -6,14 +6,14 @@ from moto.ec2.utils import resource_ids_from_querystring
class Windows(object):
def bundle_instance(self):
return NotImplemented
raise NotImplementedError('Windows.bundle_instance is not yet implemented')
def cancel_bundle_task(self):
return NotImplemented
raise NotImplementedError('Windows.cancel_bundle_task is not yet implemented')
def describe_bundle_tasks(self):
return NotImplemented
raise NotImplementedError('Windows.describe_bundle_tasks is not yet implemented')
def get_password_data(self):
return NotImplemented
raise NotImplementedError('Windows.get_password_data is not yet implemented')