Add test for ex_list_library_drives method.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ec86c955 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ec86c955 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ec86c955 Branch: refs/heads/trunk Commit: ec86c955469a51bfd5a732bfce811406e725f319 Parents: 25ed7ad Author: Tomaz Muraus <[email protected]> Authored: Fri Jan 31 23:00:08 2014 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Fri Jan 31 23:00:08 2014 +0100 ---------------------------------------------------------------------- libcloud/test/compute/test_cloudsigma_v2_0.py | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/ec86c955/libcloud/test/compute/test_cloudsigma_v2_0.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_cloudsigma_v2_0.py b/libcloud/test/compute/test_cloudsigma_v2_0.py index 6dd2ffe..6258a29 100644 --- a/libcloud/test/compute/test_cloudsigma_v2_0.py +++ b/libcloud/test/compute/test_cloudsigma_v2_0.py @@ -165,6 +165,15 @@ class CloudSigmaAPI20BaseTestCase(object): status = self.driver.ex_close_vnc_tunnel(node=node) self.assertTrue(status) + def test_ex_list_library_drives(self): + drives = self.driver.ex_list_library_drives() + + drive = drives[0] + self.assertEqual(drive.name, 'IPCop 2.0.2') + self.assertEqual(drive.size, 1000000000) + self.assertEqual(drive.media, 'cdrom') + self.assertEqual(drive.status, 'unmounted') + def test_ex_list_user_drives(self): drives = self.driver.ex_list_user_drives()
