'Test group create.
should throw NotImplementedError, is_group_a_cg_snapshot_type=False
otherwise returns status of \'available\''

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

    is_group_a_cg_snapshot_type.side_effect = [False, True]
    self.assertRaises(NotImplementedError, self.driver.create_group, self.ctx, self.group)
    model_update = self.driver.create_group(self.ctx, self.group)
    self.assertEqual(fields.GroupStatus.AVAILABLE, model_update['status'])
