Beispiel #1
0
def test_bedrecord__freeze__add_new_value():
    record_str = "my_contig\t12\t345\tmy_name"
    record = BEDRecord(record_str)
    frozen_record = record.freeze()

    with pytest.raises(AttributeError):
        frozen_record.score = 1

    assert str(frozen_record) == record_str
Beispiel #2
0
def test_bedrecord__freeze__modify_existing_value():
    record_str = "my_contig\t12\t345\tmy_name"
    record = BEDRecord(record_str)
    frozen_record = record.freeze()

    with pytest.raises(TypeError):
        frozen_record.start = 1

    assert str(frozen_record) == record_str