def test_annotate_xstream(): a = pybedtools.example_bedtool('m1.bed') b = pybedtools.example_bedtool('mm9.bed12') c = annotate.add_xstream(a, b, dist=1000, updown="up") assert a.field_count() == c.field_count() - 1 assert len(a) == len(c) d = annotate.add_xstream(c, b, dist=1000, updown="down") assert a.field_count() == d.field_count() - 2