'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.)'

def test_createBinaryMode(self):

    path = filepath.FilePath(self.mktemp())
    with path.create() as f:
        self.assertIn('b', f.mode)
        f.write('\n')
    with open(path.path, 'rb') as fp:
        read = fp.read()
        self.assertEqual(read, '\n')
