def test_equiv_error(document): with pytest.raises(ValueError): document.equiv_relations[0].argids = {'T4'} validate(document)
def test_att_error(document): with pytest.raises(ValueError): document.attributes[0].refid = 'T4' validate(document)
def test_note_error(document): with pytest.raises(ValueError): document.notes[0].refid = 'T4' validate(document)
def test_rel_error(document): with pytest.raises(ValueError): document.relations[0].arguments['Arg1'] = 'T4' validate(document)
def test_event2_error(document): with pytest.raises(ValueError): document.events[0].arguments['Arg1'] = 'T4' validate(document)
def test_event_error(document): with pytest.raises(ValueError): document.events[0].trigger_id = 'T4' validate(document)
def test_entity_error(document): with pytest.raises(ValueError): document.entities[0].text = '' validate(document)
def test_validate(document): validate(document)