some more tests to bump coverage
This commit is contained in:
parent
127a0d5993
commit
2d98a9caef
6 changed files with 16 additions and 31 deletions
|
|
@ -19,6 +19,8 @@ def test_ami_create_and_delete():
|
|||
success = conn.deregister_image(image)
|
||||
success.should.be.true
|
||||
|
||||
success = conn.deregister_image.when.called_with(image).should.throw(EC2ResponseError)
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_ami_create_from_missing_instance():
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue