'L{execfile} reads in the specified file using universal newlines so
that scripts written on one platform will work on another.'

def test_execfileUniversalNewlines(self):

    for lineEnding in (u'\n', u'\r', u'\r\n'):
        script = self.writeScript((u"foo    =    'okay'" + lineEnding))
        globalNamespace = {'foo': None}
        execfile(script.path, globalNamespace)
        self.assertEqual('okay', globalNamespace['foo'])
