'L{execfile} executes the specified file in the given global namespace.'

def test_execfileGlobals(self):

    script = self.writeScript(u'foo    +=    1\n')
    globalNamespace = {'foo': 1}
    execfile(script.path, globalNamespace)
    self.assertEqual(2, globalNamespace['foo'])
