'L{_setupPath} overrides C{sys.path} if B{TRIAL_PYTHONPATH} is specified
in the environment.'

def test_overridePath(self):

    environ = {'TRIAL_PYTHONPATH': os.pathsep.join(['foo', 'bar'])}
    _setupPath(environ)
    self.assertEqual(['foo', 'bar'], sys.path)
