def METHOD_NAME(self):
    xml_data = self.get_xml('meta')
    xform = submit_form_locally(xml_data, 'test-domain').xform
    self.assertNotEqual(None, xform.metadata)
    self.assertEqual(date(2010, 7, 22), xform.metadata.timeStart.date())
    self.assertEqual(date(2010, 7, 23), xform.metadata.timeEnd.date())
    self.assertEqual("admin", xform.metadata.username)
    self.assertEqual("f7f0c79e-8b79-11df-b7de-005056c00008", xform.metadata.userID)
    self.assertEqual("v1.2.3 (biz bazzle)", xform.metadata.appVersion)
    result = {
        'username': 'admin',
        'doc_type': 'Metadata',
        'instanceID': None,
        'userID': 'f7f0c79e-8b79-11df-b7de-005056c00008',
        'timeEnd': '2010-07-23T13:55:11.648000Z',
        'appVersion': 'v1.2.3 (biz bazzle)',
        'timeStart': '2010-07-22T13:54:27.971000Z',
        'deprecatedID': None,
        'deviceID': None,
        'clinic_id': '5020280',
        'location': None,
    }
    self._check_metadata(xform, result)