~dobey/ubuntuone-client/fix-test-fails

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_tunnel_runner.py

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2012-03-30 15:59:38 UTC
  • mfrom: (1217.1.2 fix-broken-tunnel)
  • Revision ID: tarmac-20120330155938-qt2fa0q7cb25eqnd
- Do not use the Qt Dbus mainloop on Windows (LP: #969150).
- Force using the system proxy on Windows (LP: #969157).

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        self.addCleanup(delattr, sys, "frozen")
180
180
        self.assertEqual(os.path.dirname(self.tr.get_process_path()),
181
181
            os.path.dirname(sys.executable))
 
182
 
 
183
    def test_start_process_win_devel(self):
 
184
        """Test the windows devel case."""
 
185
        fake_python = r"c:\python99\python.exe"
 
186
        self.patch(sys, "platform", "win98")
 
187
        self.patch(tunnel_runner.procutils, "which", lambda _: [fake_python])
 
188
        tunnel_runner.TunnelRunner("fs-1.one.ubuntu.com", 443)
 
189
        args, kwargs = self.spawned[1]
 
190
        self.assertEqual(args[1], fake_python)