Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/c/o/commcare-hq-HEAD/corehq/apps/domainsync/tests/test_deidentification.py   commcare-hq(Download)
import json
from dimagi.utils.couch.database import get_db
from ..config import DocumentTransform
from ..deidentification.forms import deidentify_form
 
        self.instance = post_xform_to_couch(xml_data)
 
        transform = DocumentTransform(self.instance._doc, get_db())
        self.assertTrue("IDENTIFIER" in json.dumps(transform.doc))
        self.assertTrue("IDENTIFIER" in transform.attachments["form.xml"])
        self.instance = post_xform_to_couch(xml_data)
 
        transform = DocumentTransform(self.instance._doc, get_db())
        self.assertTrue("IDENTIFIER" in json.dumps(transform.doc))
        self.assertTrue("IDENTIFIER" in transform.attachments["form.xml"])