This commit is contained in:
Steve Pulec 2013-03-05 08:35:18 -05:00
commit e993917d4c
57 changed files with 53 additions and 71 deletions

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,7 +1,7 @@
import boto
from boto.exception import EC2ResponseError
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2
@ -36,4 +36,4 @@ def test_ami_pulls_attributes_from_instance():
image_id = conn.create_image(instance.id, "test-ami", "this is a test ami")
image = conn.get_image(image_id)
expect(image.kernel_id).should.equal('test-kernel')
image.kernel_id.should.equal('test-kernel')

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -4,5 +4,7 @@ from moto import mock_ec2
@mock_ec2
def test_not_implemented_method():
requests.post.when.called_with("https://ec2.us-east-1.amazonaws.com/",
data={'Action': ['foobar']}).should.throw(NotImplementedError)
requests.post.when.called_with(
"https://ec2.us-east-1.amazonaws.com/",
data={'Action': ['foobar']}
).should.throw(NotImplementedError)

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,6 +1,6 @@
import boto
from boto.exception import EC2ResponseError
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2
@ -10,7 +10,7 @@ def test_create_and_describe_security_group():
conn = boto.connect_ec2('the_key', 'the_secret')
security_group = conn.create_security_group('test security group', 'this is a test security group')
expect(security_group.name).should.equal('test security group')
security_group.name.should.equal('test security group')
security_group.description.should.equal('this is a test security group')
# Trying to create another group with the same name should throw an error

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2

View file

@ -1,5 +1,5 @@
import boto
from sure import expect
import sure # flake8: noqa
from moto import mock_ec2