def test_nativeStringIO(self):
        """
        L{NativeStringIO} is a file-like object that stores native strings in
        memory.
        """
        f = NativeStringIO()
        f.write("hello")
        f.write(" there")
        self.assertEqual(f.getvalue(), "hello there")

        L{NativeStringIO} is a file-like object that stores native strings in
        memory.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_compat.py