some more tests to bump coverage

This commit is contained in:
Steve Pulec 2013-03-11 00:12:22 -04:00
commit 2d98a9caef
6 changed files with 16 additions and 31 deletions

View file

@ -46,9 +46,15 @@ def test_volume_attach_and_detach():
volume.update()
volume.volume_state().should.equal('available')
volume.attach.when.called_with(
'i-1234abcd', "/dev/sdh").should.throw(EC2ResponseError)
conn.detach_volume.when.called_with(
volume.id, instance.id, "/dev/sdh").should.throw(EC2ResponseError)
conn.detach_volume.when.called_with(
volume.id, 'i-1234abcd', "/dev/sdh").should.throw(EC2ResponseError)
@mock_ec2
def test_create_snapshot():