'Ensures volume type deletion with associated volumes fail.'

def test_volume_type_with_volumes_shouldnt_delete(self):

    type_ref = volume_types.create(self.ctxt, self.vol_type1_name)
    db.volume_create(self.ctxt, {'id': '1', 'updated_at': datetime.datetime(1, 1, 1, 1, 1, 1), 'display_description': 'Test    Desc', 'size': 20, 'status': 'available', 'volume_type_id': type_ref['id']})
    self.assertRaises(exception.VolumeTypeInUse, volume_types.destroy, self.ctxt, type_ref['id'])
