* ValueError with message test
* Remove white space
* Apply suggestions from code review
Change from double quotes to single quotes.
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
---------
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
self.assertFalse((p / 'fileA\udfff').info.is_symlink())
self.assertFalse((p / 'fileA\x00').info.is_symlink())
+ def test_invalid_mode(self):
+ p = self.root / 'fileA'
+ with self.assertRaisesRegex(ValueError, 'invalid mode'):
+ vfsopen(p, 'q')
+
class ZipPathReadTest(ReadTestBase, unittest.TestCase):
ground = ZipPathGround(ReadableZipPath)