@given(u'a run having mixed text content')
def given_a_run_having_mixed_text_content(context):
 r_xml = (u'        <w:r %s>\n          <w:t>abc</w:t>\n          <w:tab/>\n          <w:t>def</w:t>\n          <w:cr/>\n          <w:t>ghi</w:t>\n          <w:drawing/>\n          <w:br/>\n          <w:t>jkl</w:t>\n        </w:r>' % nsdecls(u'w'))
 r = parse_xml(r_xml)
 context.run = Run(r, None)

@ given ( u'a run having mixed text content' ) def given_a_run_having_mixed_text_content ( context ) : r_xml = ( u'        <w:r %s>\n          <w:t>abc</w:t>\n          <w:tab/>\n          <w:t>def</w:t>\n          <w:cr/>\n          <w:t>ghi</w:t>\n          <w:drawing/>\n          <w:br/>\n          <w:t>jkl</w:t>\n        </w:r>' % nsdecls ( u'w' ) ) r = parse_xml ( r_xml ) context . run = Run ( r , None )
mixed here meaning it contains <w:tab/> .