def test_getScriptsTopLevel(self):
        basedir = FilePath(self.mktemp())
        basedir.createDirectory()
        bindir = basedir.child("bin")
        bindir.createDirectory()
        included = bindir.child("included")
        included.setContent("yay included")
        subdir = bindir.child("subdir")
        subdir.createDirectory()
        subdir.child("not-included").setContent("not included")

        scripts = dist.getScripts("", basedir=basedir.path)
        self.assertEquals(scripts, [included.path])
Overridden to bind sockets, etc
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_dist.py/GetScriptsTest.test_getScriptsTopLevel--crossover with--dataset/ETHPy150Open facebook/sparts/sparts/tasks/thrift/cppserver.py/CPPServerTask.initTask