Exemplo n.º 1
0
 def test_returns_original_filesnames(self, args, expected_safe):
     with _flatten_plus_safe(args) as (_, result_safe):
         assert result_safe == expected_safe
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def test_returns_original_filesnames(self, args, expected_safe):
     with _flatten_plus_safe(args) as (_, result_safe):
         assert result_safe == expected_safe
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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)