Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (9 sloc) 0.498 kb
f6db8c2 @mhl Separate out groups of tests into files in the tests/ subdirectory
mhl authored
1 from testing import *
2
3 # Find a representative based on postcode:
4
5 postcode_test = run_http_test("/postcode/?pc=EH8+9NB",
6 test_name="Testing postcode lookup",
7 test_short_name="postcode")
8
9 run_page_test(postcode_test,
10 lambda t,o: o.soup.find( lambda x: x.name == 'h2' and x.string and x.string == "Denis Murphy" ),
11 test_name="Looking for valid postcode result",
12 test_short_name="postcode-result")
Something went wrong with that request. Please try again.