@pytest.fixture
    def rels_elm(self, request):
        # create rels_elm mock with a .xml property
        rels_elm = Mock(name='rels_elm')
        xml = PropertyMock(name='xml')
        type(rels_elm).xml = xml
        rels_elm.attach_mock(xml, 'xml')
        rels_elm.reset_mock()  # to clear attach_mock call
        # patch CT_Relationships to return that rels_elm
        patch_ = patch.object(CT_Relationships, 'new', return_value=rels_elm)
        patch_.start()
        request.addfinalizer(patch_.stop)
        return rels_elm
Adds an application to the specified Batch account.
dataset/ETHPy150Open python-openxml/python-docx/tests/opc/test_rel.py/DescribeRelationships.rels_elm--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-batch/azure/mgmt/batch/operations/application_operations.py/ApplicationOperations.add_application