Пример #1
0
def test_deco():
    m = me(22)
    assert 22 == m['age']
    assert 'kanghyojun' == m['name']
    y = you(22, 'hello world')
    assert 22 == y['age']
    assert 'kyungsun' == y['name']
    assert 'hello world' == y['message']
Пример #2
0
def test_deco():
    assert 'kyungsun' == me(22)['name']
    y = you(22,'hello')
    assert 22 == y['age']
    assert 'hyojun' == y['name']
    assert 'hello' == y['message']