'Test that create_group_snapshot return successfully.'

def test_create_group_snapshot(self):

    self.driver.do_setup(None)
    ctxt = context.get_admin_context()
    self.driver.create_group(ctxt, GROUP)
    self.driver.create_volume(VOLUME)
    (model_update, snapshots) = self.driver.create_group_snapshot(ctxt, GROUP_SNAPSHOT, [VOLUME])
    self.assertEqual(fields.GroupSnapshotStatus.AVAILABLE, model_update['status'], 'Group    Snapshot    created    failed')
    for snap in snapshots:
        self.assertEqual('available', snap['status'])
    self.driver.delete_group_snapshot(ctxt, GROUP_SNAPSHOT, [VOLUME])
    self.driver.delete_group(ctxt, GROUP, [VOLUME])
