コード例 #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)