def test_dump_file(self):
        this_file = os.path.splitext(__file__)[0] + '.py'
        f = open(this_file)
        try:
            numlines = len(f.readlines())
        finally:
            f.close()

        dump_file(this_file, 'I am the header')
        self.assertEqual(len(self._logs), numlines+1)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/tests/test_config_cmd.py/ConfigTestCase.test_dump_file/original