Merge "Added test for volume type show"

This commit is contained in:
Jenkins 2015-07-31 08:57:30 +00:00 committed by Gerrit Code Review
commit bd022cb58c

View File

@ -38,3 +38,8 @@ class VolumeTypeTests(test.TestCase):
opts = self.get_list_opts(self.HEADERS) opts = self.get_list_opts(self.HEADERS)
raw_output = self.openstack('volume type list' + opts) raw_output = self.openstack('volume type list' + opts)
self.assertIn(self.NAME, raw_output) self.assertIn(self.NAME, raw_output)
def test_volume_type_show(self):
opts = self.get_show_opts(self.FIELDS)
raw_output = self.openstack('volume type show ' + self.NAME + opts)
self.assertEqual(self.NAME + "\n", raw_output)