예제 #1
0
def test_attror_and():
    attr = core_attrs.Instrument('foo') | core_attrs.Instrument('bar')
    one = attr & va.Source('bar')
    other = ((core_attrs.Instrument('foo') & va.Source('bar')) |
             (core_attrs.Instrument('bar') & va.Source('bar')))
    assert one == other
예제 #2
0
def test_attror_and():
    attr = va.Instrument('foo') | va.Instrument('bar')
    one = attr & va.Source('bar')
    other = ((va.Instrument('foo') & va.Source('bar')) |
             (va.Instrument('bar') & va.Source('bar')))
    assert one == other