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

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)
Has 'server' return contents of local file.

These should be full protocol dumps, e.g. created with `curl -i`.

src/a/c/ac-HEAD/test/malcom.py   ac(Download)
# Now we can.
import AniChou.malcom
from AniChou.testing import MockHTTPHandler
 
class TestRequest(unittest.TestCase):
    def setUp(self):
        self.director = urllib2.build_opener(
            MockHTTPHandler("search result jungle.txt"))
        self.request = AniChou.malcom.Search("Jungle")
 
    def setUp(self):
        self.director = urllib2.build_opener(
            MockHTTPHandler("search result holic.txt"))
        self.request = AniChou.malcom.Search("Holic")
 
    def setUp(self):
        self.director = urllib2.build_opener(
            MockHTTPHandler("list.xml.gz"))
        self.request = AniChou.malcom.List(username = "crono22")
 
    def setUp(self):
        self.director = urllib2.build_opener(
            MockHTTPHandler("invalid username.txt"))
        self.request = AniChou.malcom.List(username = ">.<")
 

src/a/c/ac-HEAD/test/fulltext.py   ac(Download)
import AniChou.malcom
from AniChou import fulltext
from AniChou.testing import MockHTTPHandler
 
class TestSplitting(unittest.TestCase):
    def setUp(self):
        self.director = urllib2.build_opener(MockHTTPHandler("list.xml.gz"))
        self.request = AniChou.malcom.List(username = "crono22")
        self.db = fulltext.Index()