def test_header_version(self):
    'Test that the PROTO and world files have the correct header.'
    for currentFile in self.files:
        fileToTest = currentFile[0]
        with open(fileToTest) as file:
            content = file.read()
            if (content == ''):
                continue
            line = content.splitlines()[0].strip()
            self.assertTrue(line.startswith(currentFile[1]), msg=('Wrong header in file: "%s"' % fileToTest))
Test that the PROTO and world files have the correct header.
def test_header_version(self):
    
    for currentFile in self.files:
        fileToTest = currentFile[0]
        with open(fileToTest) as file:
            content = file.read()
            if (content == ):
                continue
            line = content.splitlines()[0].strip()
            self.assertTrue(line.startswith(currentFile[1]), msg=('Wrong header in file: "%s"' % fileToTest))