Ejemplo n.º 1
0
    def test_get_default_path_virtualenv(self):
        self.mock_state.hook_calls = [('facio.hooks.python.virtualenv',
                                       '/foo/bar')]

        i = Setup()
        path = i.get_default_path_to_python()

        self.assertEqual('/foo/bar/bin/python', path)
Ejemplo n.º 2
0
    def test_get_default_path_virtualenv(self):
        self.mock_state.hook_calls = [(
            'facio.hooks.python.virtualenv', '/foo/bar'
        )]

        i = Setup()
        path = i.get_default_path_to_python()

        self.assertEqual('/foo/bar/bin/python', path)
Ejemplo n.º 3
0
    def test_get_default_python_path_current(self):
        i = Setup()
        path = i.get_default_path_to_python()

        self.assertEqual(sys.executable, path)
Ejemplo n.º 4
0
    def test_get_default_python_path_current(self):
        i = Setup()
        path = i.get_default_path_to_python()

        self.assertEqual(sys.executable, path)