'Test encryption and decryption for res with legacy prop data.'

def test_db_encrypt_decrypt_legacy_prop_data(self):

    [self.ctx.session.delete(r) for r in self.ctx.session.query(models.Resource).all()]
    [self.ctx.session.delete(s) for s in self.ctx.session.query(models.Stack).all()]
    [self.ctx.session.delete(t) for t in self.ctx.session.query(models.RawTemplate).all()]
    tmpl = self._create_template()
    stack = create_stack(self.ctx, tmpl, self.user_creds)
    create_resource(self.ctx, stack, True, name='res1')
    self._test_db_encrypt_decrypt(legacy_prop_data=True)
