def _lsInTimezone(self, timezone, stat):
        """
        Call L{ls.lsLine} after setting the timezone to C{timezone} and return
        the result.
        """
        # Set the timezone to a well-known value so the timestamps are
        # predictable.
        os.environ['TZ'] = timezone
        time.tzset()
        return ls.lsLine('foo', stat)

        Call L{ls.lsLine} after setting the timezone to C{timezone} and return
        the result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_cftp.py