예제 #1
0
def test_equiv_error(document):
    with pytest.raises(ValueError):
        document.equiv_relations[0].argids = {'T4'}
        validate(document)
예제 #2
0
def test_att_error(document):
    with pytest.raises(ValueError):
        document.attributes[0].refid = 'T4'
        validate(document)
예제 #3
0
def test_note_error(document):
    with pytest.raises(ValueError):
        document.notes[0].refid = 'T4'
        validate(document)
예제 #4
0
def test_rel_error(document):
    with pytest.raises(ValueError):
        document.relations[0].arguments['Arg1'] = 'T4'
        validate(document)
예제 #5
0
def test_event2_error(document):
    with pytest.raises(ValueError):
        document.events[0].arguments['Arg1'] = 'T4'
        validate(document)
예제 #6
0
def test_event_error(document):
    with pytest.raises(ValueError):
        document.events[0].trigger_id = 'T4'
        validate(document)
예제 #7
0
def test_entity_error(document):
    with pytest.raises(ValueError):
        document.entities[0].text = ''
        validate(document)
예제 #8
0
def test_validate(document):
    validate(document)