Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(1)  |  Import(1)

src/q/u/quality_report-1.0/unittests/metric_source/pom_tests.py   quality_report(Download)
import StringIO
import urllib2
from qualitylib.metric_source import Pom
from qualitylib import domain
class PomUnderTest(Pom):
    ''' Override class to return a static pom file. '''
    def url_open(self, url):
        if 'raise' in url:
            raise urllib2.HTTPError(None, None, None, None, None)