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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/d/j/django-pyvows-HEAD/vows/server_vows.py   django-pyvows(Download)
        def topic(self):
            return self.post('/post_it/', {'value': 'posted!'})
 
        def should_be_posted(self, (topic, content)):
            expect(content).to_equal('posted!')
 
        class PostFile(DjangoContext):
 
            def topic(self):
                return self.post('/post_file/', {'the_file': open(TEST_FILE_PATH) })
            def topic(self):
                return self.post('/post_/', {'the_file': open(TEST_FILE_PATH) })
 
            def should_be_404(self, (topic, content)):
                expect(topic.status).to_equal(404)