'If an environment is provided, that environment is used.'

def test_environment_given(self):

    expected_env = {'a': 'variable'}
    reactor = ProcessCoreReactor()
    run(reactor, ['command', 'and', 'args'], env=expected_env)
    [process] = reactor.processes
    self.assertEqual(process.env, expected_env)
