def test_returns_original_filesnames(self, args, expected_safe): with _flatten_plus_safe(args) as (_, result_safe): assert result_safe == expected_safe
def test_creates_path_to_tx_file_in_tmp_dir(self, args, expected_tx): with _flatten_plus_safe(args) as (result_tx, _): assert result_tx == expected_tx
def test_calls_tx_tmpdir(self, args, exp_tx_args): with _flatten_plus_safe(args) as (result_tx, result_safe): pass transaction.tx_tmpdir.assert_called_once_with(*exp_tx_args)