Require a GroupDescription for security group creation. Closes #112.
This commit is contained in:
parent
8182b3baa8
commit
06481ebe7e
2 changed files with 11 additions and 2 deletions
|
|
@ -21,6 +21,12 @@ def test_create_and_describe_security_group():
|
|||
all_groups[0].name.should.equal('test security group')
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_create_security_group_without_description_raises_error():
|
||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||
conn.create_security_group.when.called_with('test security group', '').should.throw(EC2ResponseError)
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_create_and_describe_vpc_security_group():
|
||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue