rename backends

This commit is contained in:
Steve Pulec 2013-02-18 16:31:42 -05:00
parent b5c9fbb4f0
commit f8633cbab7
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ from moto.core import BaseBackend
from .utils import random_instance_id, random_reservation_id
class MockEC2(BaseBackend):
class EC2Backend(BaseBackend):
base_url = "https://ec2.us-east-1.amazonaws.com"
def __init__(self):
@ -41,4 +41,4 @@ class MockEC2(BaseBackend):
return self.reservations.values()
ec2_backend = MockEC2()
ec2_backend = EC2Backend()

View File

@ -22,7 +22,7 @@ class FakeBucket(object):
self.keys = []
class MockS3(BaseBackend):
class S3Backend(BaseBackend):
base_url = "https://(.+).s3.amazonaws.com"
def __init__(self):
@ -54,4 +54,4 @@ class MockS3(BaseBackend):
return found_key
s3_backend = MockS3()
s3_backend = S3Backend()