コード例 #1
0
ファイル: test_create.py プロジェクト: vscoder/borgmatic
def test_write_pattern_file_does_not_raise():
    temporary_file = flexmock(name='filename',
                              write=lambda mode: None,
                              flush=lambda: None)
    flexmock(module.tempfile).should_receive('NamedTemporaryFile').and_return(
        temporary_file)

    module._write_pattern_file(['exclude'])
コード例 #2
0
ファイル: test_create.py プロジェクト: vscoder/borgmatic
def test_write_pattern_file_with_empty_exclude_patterns_does_not_raise():
    module._write_pattern_file([])