Lines Matching refs:self
59 def setUp(self):
61 self.client = '%s/src/spdycat' % build_dir
62 self.stdout = 'No output'
64 def call(self, path, args):
65 full_args = [self.client,'http://localhost:%d%s' % (_PORT, path)] + args
68 self.stdout, self.stderr = p.communicate()
73 def testSimpleRequest(self):
74 self.assertEquals(0, self.call('/', []))
76 def testSimpleRequestSpdy3(self):
77 self.assertEquals(0, self.call('/', ['-v', '-3']))
78 self.assertIn('NPN selected the protocol: spdy/3', self.stdout)
80 def testFailedRequests(self):
81 self.assertEquals(
82 2, self.call('/', ['https://localhost:25/', 'http://localhost:79']))
84 def testOneFailedRequest(self):
85 self.assertEquals(1, subprocess.call([self.client, 'http://localhost:2/']))
87 def testOneTimedOutRequest(self):
88 self.assertEquals(1, self.call('/?spdyd_do_not_respond_to_req=yes',
90 self.assertEquals(0, self.call('/', ['--timeout=20']))
98 def testSimpleRequest(self):
99 self.assertEquals(0, self.call('/', ['-v']))
100 self.assertIn('NPN selected the protocol: spdy/3', self.stdout)