def test_add_and_delete(self):
        doc = DocumentFactory()
        RevisionFactory(document=doc, is_approved=True)
        self.refresh()
        eq_(DocumentMappingType.search().count(), 1)

        doc.delete()
        self.refresh()
        eq_(DocumentMappingType.search().count(), 0)
Wrapper function to retrieve attributes from XML nodes.
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/tests/test_es.py/DocumentUpdateTests.test_add_and_delete--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/xml_parser_utils.py/GetAttribute