import urllib2

import fixture

TESTCASE = ''

class StubResponse(object):
    def __init__(self, *args, **kwargs):
        self.args = args
        self.kwargs = kwargs
    
    def read(self):
        return getattr(fixture, TESTCASE)

def _urlopen(*args, **kwargs):
    return StubResponse(args, kwargs)
urllib2.urlopen = _urlopen
    
