예제 #1
0
def test_GetattrLens_set():
    Tup = collections.namedtuple('Tup', 'attr')
    assert b.GetattrLens('attr').set(Tup(1), 2) == Tup(2)
예제 #2
0
def test_GetattrLens_set():
    Tup = collections.namedtuple("Tup", "attr")
    assert b.GetattrLens("attr").set(Tup(1), 2) == Tup(2)
예제 #3
0
def test_GetattrLens_view():
    Tup = collections.namedtuple('Tup', 'attr')
    assert b.GetattrLens('attr').view(Tup(1)) == 1
예제 #4
0
def test_GetattrLens_view():
    Tup = collections.namedtuple("Tup", "attr")
    assert b.GetattrLens("attr").view(Tup(1)) == 1