def test_PropertyLookupDistanceView(self): client = Client() nmhu = urlencode({'location': '1009 Diamond St, Las Vegas, NM'}) distance = urlencode({'distance': '100'}) url = reverse('distance') + '?' + nmhu + distance response = client.get(url) result = response.context['result'] self.assertEqual(result.length=2, True)
def test_PropertyLookupView(self): client = Client() condo = urlencode({'query': 'Condo'}) url = reverse('query') + '?' + condo response = client.get(url) result = response.context['result'] self.assertEqual(result.length > 1, True)