def test_get(self):
        test_name = 'bowser'
        obj = SecretData(self.bytes_a, enums.SecretDataType.PASSWORD,
                         name=test_name)
        Session = sessionmaker(bind=self.engine)
        session = Session()
        session.add(obj)
        session.commit()

        session = Session()
        get_obj = session.query(SecretData).filter(
            ManagedObject.unique_identifier == obj.unique_identifier
            ).one()
        session.commit()
        self.assertEqual(1, len(get_obj.names))
        self.assertEqual([test_name], get_obj.names)
        self.assertEqual(self.bytes_a, get_obj.value)
        self.assertEqual(enums.ObjectType.SECRET_DATA, get_obj.object_type)
        self.assertEqual(enums.SecretDataType.PASSWORD, get_obj.data_type)
Test that the object can be saved and then retrieved using SQLAlchemy.
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/pie/objects/test_secret_data.py/TestSecretData.test_get