File: test-dns.py

package info (click to toggle)
twill 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,472 kB
  • ctags: 1,916
  • sloc: python: 12,686; java: 98; makefile: 18; sh: 2
file content (15 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import twilltestlib

import pkg_resources
try:
   pkg_resources.require('dnspython>=1.4')
   no_dns_python = False
except pkg_resources.DistributionNotFound:
   no_dns_python = True
   pass

def test():
   url = twilltestlib.get_url()

   if not no_dns_python:
       twilltestlib.execute_twill_script('test-dns.twill', initial_url=url)