def test_will_not_purge_without_name(self):
        self.assertRaises(exception.InvalidInstanceType,
                          instance_types.purge, None)
Ensure purge without a name raises error
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_instance_types.py/InstanceTypeTestCase.test_will_not_purge_without_name