from __future__ import unicode_literals

This commit is contained in:
David Baumgold 2014-08-27 11:17:06 -04:00
parent b69179818c
commit 4201e6b430
196 changed files with 219 additions and 19 deletions

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import logging
logging.getLogger('boto').setLevel(logging.CRITICAL)

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .models import autoscaling_backend, autoscaling_backends
from ..core.models import MockAWS

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMapping
from moto.core import BaseBackend
from moto.ec2 import ec2_backends

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import AutoScalingResponse
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.autoscaling import autoscaling_backend
from moto.dynamodb import dynamodb_backend
from moto.dynamodb2 import dynamodb_backend2

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import cloudformation_backend
mock_cloudformation = cloudformation_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import json
from moto.core import BaseBackend

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import collections
import logging

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import json
from jinja2 import Template

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import CloudFormationResponse
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import uuid

View File

@ -1 +1,2 @@
from __future__ import unicode_literals
from .models import BaseBackend

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import functools
import re

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import datetime
import json
import re

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import inspect
import random
import re

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import dynamodb_backend
mock_dynamodb = dynamodb_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
# TODO add tests for all of these
COMPARISON_FUNCS = {
'EQ': lambda item_value, test_value: item_value == test_value,

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from collections import defaultdict
import datetime
import json

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import json
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import DynamoHandler
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import calendar

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import dynamodb_backend2
mock_dynamodb2 = dynamodb_backend2.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
# TODO add tests for all of these
COMPARISON_FUNCS = {
'EQ': lambda item_value, test_value: item_value == test_value,

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from collections import defaultdict
import datetime
import json

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import json
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import DynamoHandler
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import calendar

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .models import ec2_backends, ec2_backend
from ..core.models import MockAWS

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from werkzeug.exceptions import BadRequest
from jinja2 import Template

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import copy
import itertools
from collections import defaultdict

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
from .amazon_dev_pay import AmazonDevPay
from .amis import AmisResponse
from .availability_zones_and_regions import AvailabilityZonesAndRegions

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse
from moto.ec2.utils import (

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from moto.ec2.models import ec2_backend
from moto.ec2.utils import sequence_from_querystring

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse
from moto.ec2.models import ec2_backend
@ -32,7 +33,7 @@ class KeyPairs(BaseResponse):
DESCRIBE_KEY_PAIRS_RESPONSE = """<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<keySet>
{% for keypair in keypairs %}
<item>
@ -55,6 +56,6 @@ CREATE_KEY_PAIR_RESPONSE = """<CreateKeyPairResponse xmlns="http://ec2.amazonaws
DELETE_KEY_PAIR_RESPONSE = """<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<return>{{ success }}</return>
</DeleteKeyPairResponse>"""

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import EC2Response

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import random
import re

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import elb_backend
mock_elb = elb_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core import BaseBackend

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import ELBResponse
url_bases = [

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import emr_backend
mock_emr = emr_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core import BaseBackend
from .utils import random_job_id, random_instance_group_id

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import ElasticMapReduceResponse
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import random
import string

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import iam_backend
mock_iam = iam_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core import BaseBackend
from .utils import random_resource_id

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import IamResponse
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import random
import string

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import route53_backend
mock_route53 = route53_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core import BaseBackend
from moto.core.utils import get_random_hex

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from urlparse import parse_qs, urlparse
from .models import route53_backend

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import responses
url_bases = [

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import s3_backend
mock_s3 = s3_backend.decorator

View File

@ -1,3 +1,6 @@
from __future__ import unicode_literals
class BucketAlreadyExists(Exception):
pass

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import os
import base64
import datetime

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from urlparse import parse_qs, urlparse
import re

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import S3ResponseInstance
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import re
import sys
import urllib2

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import s3bucket_path_backend
mock_s3bucket_path = s3bucket_path_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.s3.models import S3Backend

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .models import s3bucket_path_backend
from .utils import bucket_name_from_url

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import S3BucketPathResponseInstance as ro
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import urlparse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import re
import sys
import argparse

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import ses_backend
mock_ses = ses_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from moto.core import BaseBackend
from .utils import get_random_message_id

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from jinja2 import Template
from moto.core.responses import BaseResponse

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
from .responses import EmailResponse
url_bases = [

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import random
import string

View File

@ -1,2 +1,3 @@
from __future__ import unicode_literals
from .models import sns_backend
mock_sns = sns_backend.decorator

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import datetime
import requests
import uuid

Some files were not shown because too many files have changed in this diff Show More