Require a GroupDescription for security group creation. Closes #112.

This commit is contained in:
Steve Pulec 2014-05-11 17:37:00 -04:00
commit 06481ebe7e
2 changed files with 11 additions and 2 deletions

View file

@ -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')