#!/usr/bin/env python
import sys, os
here = os.path.dirname(__file__)
sys.path.insert(0, here)
os.chdir(here)
import pkg_resources
pkg_resources.require('HTTPEncode')

options = dict(
    WHERE=here,
    NOSE_DETAILED_ERRORS='t',
    NOSE_WITH_DOCTEST='t',
    NOSE_DOCTEST_TESTS='t',
    #NOSE_WITH_COVERAGE='t',
    COVER_PACKAGES='httpencode',
    NOSE_WITH_MISSED_TESTS='t',
    )

for name, value in options.items():
    os.environ.setdefault(name, value)

import nose
nose.main()
