#NEWLINE# def test_robots_txt( webtest ) : #NEWLINE# #INDENT# resp = webtest . get ( '/robots.txt' ) #NEWLINE# assert ( resp . status_code == 200 ) #NEWLINE# assert ( resp . content_type == 'text/plain' ) #NEWLINE# assert ( resp . body . decode ( resp . charset ) == 'Sitemap: http://localhost/sitemap.xml\n\nUser-agent: *\nDisallow: /simple/\nDisallow: /packages/\nDisallow: /_includes/\nDisallow: /pypi/*/json\nDisallow: /pypi/*/*/json\nDisallow: /pypi*?\n' )