<s> from django . core . urlresolvers import resolve <EOL> from django . http import HttpRequest <EOL> from django . http import QueryDict <EOL> from django . test import TestCase <EOL> from django . test import Client <EOL> from django . contrib . auth . models import User <EOL> from django . contrib . auth import authenticate , login , logout <EOL> from landpage . views import google <EOL> import json <EOL> class GoogleVerifyTest ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def tearDown ( self ) : <EOL> pass <EOL> def setUp ( self ) : <EOL> pass <EOL> def test_url_resolves_to_google_verify_page_view ( self ) : <EOL> found = resolve ( '<STR_LIT>' ) <EOL> self . assertEqual ( found . func , google . google_verify_page ) <EOL> def test_google_verify_page_returns_correct_html ( self ) : <EOL> client = Client ( ) <EOL> response = client . post ( <EOL> '<STR_LIT>' , <EOL> ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> self . assertIn ( b'<STR_LIT>' , response . content ) </s>
