#NEWLINE# def test_catalog_page_returns_correct_html( self ) : #NEWLINE# #INDENT# client = Client ( ) #NEWLINE# client . login ( username = TEST_USER_USERNAME , password = TEST_USER_PASSWORD ) #NEWLINE# response = client . post ( '/publish' ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertIn ( b'/publish' , response . content ) #NEWLINE# self . assertIn ( b'Catalog' , client . content )