summaryrefslogtreecommitdiff
path: root/tests/unit/ec2/test_volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/ec2/test_volume.py')
-rw-r--r--tests/unit/ec2/test_volume.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unit/ec2/test_volume.py b/tests/unit/ec2/test_volume.py
index a14ce6b3..81d7f552 100644
--- a/tests/unit/ec2/test_volume.py
+++ b/tests/unit/ec2/test_volume.py
@@ -144,20 +144,19 @@ class VolumeTests(unittest.TestCase):
self.volume_one.connection = mock.Mock()
self.volume_one.detach()
self.volume_one.connection.detach_volume.assert_called_with(
- 1, 2, "/dev/null", False, dry_run=False)
+ 1, 2, "/dev/null", False, dry_run=False)
def test_detach_with_no_attach_data(self):
self.volume_two.connection = mock.Mock()
self.volume_two.detach()
self.volume_two.connection.detach_volume.assert_called_with(
- 1, None, None, False, dry_run=False)
+ 1, None, None, False, dry_run=False)
def test_detach_with_force_calls_detach_volume_with_force(self):
self.volume_one.connection = mock.Mock()
self.volume_one.detach(True)
self.volume_one.connection.detach_volume.assert_called_with(
- 1, 2, "/dev/null", True, dry_run=False)
-
+ 1, 2, "/dev/null", True, dry_run=False)
def test_create_snapshot_calls_connection_create_snapshot(self):
self.volume_one.connection = mock.Mock()
@@ -205,7 +204,8 @@ class VolumeTests(unittest.TestCase):
self.volume_one.connection.get_all_snapshots.return_value = []
self.volume_one.snapshots("owner", "restorable_by")
self.volume_one.connection.get_all_snapshots.assert_called_with(
- owner="owner", restorable_by="restorable_by", dry_run=False)
+ owner="owner", restorable_by="restorable_by", dry_run=False)
+
class AttachmentSetTests(unittest.TestCase):
def check_that_attribute_has_been_set(self, name, value, attribute):
@@ -231,6 +231,7 @@ class AttachmentSetTests(unittest.TestCase):
def test_endElement_with_other_name_sets_other_name_attribute(self):
return self.check_that_attribute_has_been_set("someName", "some value", "someName")
+
class VolumeAttributeTests(unittest.TestCase):
def setUp(self):
self.volume_attribute = VolumeAttribute()