def METHOD_NAME(self):
    class Wrapfile(object):
        def __init__(self, file):
            self.file = open(file, 'rb')
            self.closed = False
        def close(self):
            self.file.close()
            self.closed = True
        def __getattr__(self, attr): return getattr(self.file, attr)
    testfile = Wrapfile(self.sndfilepath)
    f = self.f = aifc.open(testfile)
    self.assertEqual(testfile.closed, False)
    f.close()
    self.assertEqual(testfile.closed, True)