def test_shot_add_instance_fail(shot, instance_shot): # Expect to fail with InstanceNameExists error. try: Instance.add_instance(shot, instance_shot.asset, instance_shot.name) except InstanceNameExists: return raise AssertionError('Expected a InstanceNameExists due to instance name exists')
def test_sequence_add_instance(sequence, asset): Instance.add_instance(sequence, asset, asset.name + 'new_1')
def test_shot_add_instance(shot, asset): Instance.add_instance(shot, asset, asset.name + 'new_1')