

def test_build_with_file(self):
    reader.project.add_file(__file__.rstrip('c'), 'this.py')
    with temppath() as path:
        self.project.build(path)
        reader = ZipFile(path)
        try:
            ok_(('this.py' in reader.namelist()))
            eq_(reader.read('this.py').decode('utf-8').split('\n')[0], '#!/usr/bin/env python')
        finally:
            reader.close()

dataset/ETHPy150Open mtth/azkaban/test/test_project.py TestProjectBuild.test_build_with_file/VarMisuse@10/14 `self`->`reader`