Exemplo n.º 1
0
def test_trash(mock_trash):
    trash = Trash()
    trash.run({'path': Path.home() / 'this' / 'file.tar.gz'}, False)
    mock_trash.assert_called_with(os.path.join(USER_DIR, 'this',
                                               'file.tar.gz'))
Exemplo n.º 2
0
def test_trash(mock_trash):
    trash = Trash()
    trash.run(Path('~/this'), Path('~/this/file.tar.gz'), {}, False)
    mock_trash.assert_called_with(os.path.join(USER_DIR, 'this',
                                               'file.tar.gz'))
Exemplo n.º 3
0
def test_trash(mock_trash):
    trash = Trash()
    trash.run(path=Path.home() / "this" / "file.tar.gz", simulate=False)
    mock_trash.assert_called_with(os.path.join(USER_DIR, "this",
                                               "file.tar.gz"))