'Test group create.'

@mock.patch('cinder.volume.utils.is_group_a_cg_snapshot_type')
def test_storwize_group_create(self, is_grp_a_cg_snapshot_type):

    is_grp_a_cg_snapshot_type.side_effect = [False, True]
    group = mock.MagicMock()
    self.assertRaises(NotImplementedError, self.driver.create_group, self.ctxt, group)
    model_update = self.driver.create_group(self.ctxt, group)
    self.assertEqual(fields.GroupStatus.AVAILABLE, model_update['status'])
