import os, nose, unittest


class Test(unittest.TestCase):

    def test_env(self):
        self.assertEqual(os.environ.get('HELLO'), 'WORLD')
if __name__ == '__main__':
    os.environ['HELLO'] = 'WORLD'
nose.run()
nosetests framework: how to pass environment variables to my tests?