def testReadAndWriteSerializedObject(self):
    serialized_path_spec = (
        serializer.ProtobufPathSpecSerializer.WriteSerializedObject(
            self._tsk_path_spec))

    self.assertIsNotNone(serialized_path_spec)

    path_spec = serializer.ProtobufPathSpecSerializer.ReadSerializedObject(
        serialized_path_spec)

    self.assertIsNotNone(path_spec)

    path_spec_dict = path_spec.CopyToDict()
    self.assertEqual(
        sorted(path_spec_dict.items()),
        sorted(self._tsk_path_spec_dict.items()))
Load all available table definitions from the database.
dataset/ETHPy150Open log2timeline/dfvfs/tests/serializer/protobuf_serializer.py/ProtobufPathSpecSerializerTest.testReadAndWriteSerializedObject--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/sql/schema.py/MetaData.reflect