Esempio n. 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')])
Esempio n. 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'),
          ])
Esempio n. 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"),
         ],
     )