Black formatting
This commit is contained in:
parent
76b9cbe16d
commit
d3367b8a90
@ -232,12 +232,11 @@ class InvalidVolumeAttachmentError(EC2ClientError):
|
||||
|
||||
|
||||
class VolumeInUseError(EC2ClientError):
|
||||
|
||||
def __init__(self, volume_id, instance_id):
|
||||
super(VolumeInUseError, self).__init__(
|
||||
"VolumeInUse",
|
||||
"Volume {0} is currently attached to {1}"
|
||||
.format(volume_id, instance_id))
|
||||
"Volume {0} is currently attached to {1}".format(volume_id, instance_id),
|
||||
)
|
||||
|
||||
|
||||
class InvalidDomainError(EC2ClientError):
|
||||
|
@ -76,7 +76,9 @@ def test_delete_attached_volume():
|
||||
volume.delete()
|
||||
ex.exception.error_code.should.equal("VolumeInUse")
|
||||
ex.exception.status.should.equal(400)
|
||||
ex.exception.message.should.equal(f"Volume {volume.id} is currently attached to {instance.id}")
|
||||
ex.exception.message.should.equal(
|
||||
f"Volume {volume.id} is currently attached to {instance.id}"
|
||||
)
|
||||
|
||||
volume.detach()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user