def test_memoised_call():
    'Call memoised function.'
    memoiser = ftrack_api.cache.Memoiser()
    assert_memoised_call(memoiser, function, args=(1,), expected={'result': 3}, memoised=False)
    assert_memoised_call(memoiser, function, args=(1,), expected={'result': 3}, memoised=True)
    assert_memoised_call(memoiser, function, args=(3,), expected={'result': 5}, memoised=False)
Call memoised function.
def test_memoised_call():
    
    memoiser = ftrack_api.cache.Memoiser()
    assert_memoised_call(memoiser, function, args=(1,), expected={'result': 3}, memoised=False)
    assert_memoised_call(memoiser, function, args=(1,), expected={'result': 3}, memoised=True)
    assert_memoised_call(memoiser, function, args=(3,), expected={'result': 5}, memoised=False)