Example #1
0
def test_lens_call_kwargs():
    assert lens.call("encode", encoding="utf-8")("h") == b"h"
Example #2
0
def test_lens_call_args():
    assert lens.call("center", 5)("h") == "  h  "
Example #3
0
def test_lens_call():
    assert lens.call("upper")("hello") == "HELLO"
Example #4
0
def test_lens_call_kwargs():
    assert lens.call('encode', encoding='utf-8')('h') == b'h'
Example #5
0
def test_lens_call_args():
    assert lens.call('center', 5)('h') == '  h  '
Example #6
0
def test_lens_call():
    assert lens.call('upper')('hello') == 'HELLO'