def test_createBinaryMode(self):
        """
        L{FilePath.create} should always open (and write to) files in binary
        mode; line-feed octets should be unmodified.

        (While this test should pass on all platforms, it is only really
        interesting on platforms which have the concept of binary mode, i.e.
        Windows platforms.)
        """
        path = filepath.FilePath(self.mktemp())
        with path.create() as f:
            self.assertIn("b", f.mode)
            f.write(b"\n")
        with open(path.path, "rb") as fp:
            read = fp.read()
            self.assertEqual(read, b"\n")

        L{FilePath.create} should always open (and write to) files in binary
        mode; line-feed octets should be unmodified.

        (While this test should pass on all platforms, it is only really
        interesting on platforms which have the concept of binary mode, i.e.
        Windows platforms.)
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py