def testIsFunctions(self):
    file_entry = self._file_system.GetFileEntryByPathSpec(
        self._encrypted_stream_path_spec)
    self.assertIsNotNone(file_entry)

    self.assertTrue(file_entry.IsRoot())
    self.assertTrue(file_entry.IsVirtual())
    self.assertTrue(file_entry.IsAllocated())

    self.assertFalse(file_entry.IsDevice())
    self.assertFalse(file_entry.IsDirectory())
    self.assertTrue(file_entry.IsFile())
    self.assertFalse(file_entry.IsLink())
    self.assertFalse(file_entry.IsPipe())
    self.assertFalse(file_entry.IsSocket())
Test graceful mysql connection failure.
dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/encrypted_stream_file_entry.py/EncryptedStreamFileEntryTest.testIsFunctions--crossover with--dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/tests/migrations/test_migrations.py/TestWalkMigrations.test_mysql_connect_fail