Module Expr Str ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Pass decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str
N/A N/A 
Step implementations for basic API features
 behave given then when N/A docx docx Document helpers test_docx given_I_have_python_docx_installed N/A N/A context N/A N/A N/A N/A N/A given I have python-docx installed when_I_call_docx_Document_with_no_arguments N/A N/A context N/A N/A N/A N/A context document N/A Document N/A N/A when I call docx.Document() with no arguments when_I_call_docx_Document_with_the_path_of_a_docx_file N/A N/A context N/A N/A N/A N/A context document N/A Document N/A test_docx doc-default N/A N/A when I call docx.Document() with the path of a .docx file then_document_is_a_Document_object N/A N/A context N/A N/A N/A document N/A context document N/A N/A isinstance document N/A N/A docx document Document N/A N/A then document is a Document object then_last_p_contains_specified_text N/A N/A context N/A N/A N/A document N/A context document N/A text N/A context paragraph_text N/A p N/A N/A document paragraphs N/A -1 N/A N/A N/A p text text N/A N/A then the last paragraph contains the text I specified then_the_last_paragraph_has_the_style_I_specified N/A N/A context N/A N/A N/A N/A document expected_style N/A N/A context document N/A context style N/A paragraph N/A N/A document paragraphs N/A -1 N/A N/A N/A paragraph style expected_style N/A N/A then the last paragraph has the style I specified then_last_p_is_empty_paragraph_added N/A N/A context N/A N/A N/A document N/A context document N/A p N/A N/A document paragraphs N/A -1 N/A N/A N/A p text N/A N/A then the last paragraph is the empty paragraph I added