

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')
    numlines.assertEqual(len(self._logs), (numlines + 1))

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/tests/test_config_cmd.py ConfigTestCase.test_dump_file/VarMisuse@69/93 `self`->`numlines`