Exemple #1
0
 def test_setup_bzr(self, mp):
     mp.side_effect = [IOError("bzr command failed!"), None, None]
     setup_bzr('/path')
     self.assertEqual(mp.call_args_list,
                      [call(['whoami'], '/path'),
                       call(['whoami', '*****@*****.**'], '/path'),
                       call(['init'], '/path')])
Exemple #2
0
 def test_setup_bzr(self, mp):
     # Set one side_effect for each expected call to run_bzr.
     mp.side_effect = [IOError("bzr command failed!"), None, None, None]
     setup_bzr('/path')
     self.assertEqual(
         mp.call_args_list,
         [call(['whoami'], '/path'),
          call(['whoami', '*****@*****.**'], '/path'),
          call(['init'], '/path'),
          call(['config', 'add.maximum_file_size=0'], '/path'),
          ])
Exemple #3
0
 def test_setup_bzr(self, mp):
     # Set one side_effect for each expected call to run_bzr.
     mp.side_effect = [IOError("bzr command failed!"), None, None, None]
     setup_bzr("/path")
     self.assertEqual(
         mp.call_args_list,
         [
             call(["whoami"], "/path"),
             call(["whoami", "*****@*****.**"], "/path"),
             call(["init"], "/path"),
             call(["config", "add.maximum_file_size=0"], "/path"),
         ],
     )