Beispiel #1
0
def user_pastes(user):
    """
    List pastes of a user
    Arguments:
    - `user`:
    """
    return show_pasta_list(modelo.get_user_pasta(user))
Beispiel #2
0
def test_get_user_pasta():
    with patch('modelo.pastas.find') as p:
        modelo.get_user_pasta(1)
        p.assert_called_with(user=1)