コード例 #1
0
ファイル: test_fastcgi.py プロジェクト: Almad/twisted
 def testParseLongValue(self):
     '''
     Test parsing a long value.
     '''
     self.assertEqual(
             [('x', 'y'*128)],
             list(fastcgi.parseNameValues(fastcgi.writeNameValue('x', 'y'*128))))
コード例 #2
0
 def testParseLongValue(self):
     '''
     Test parsing a long value.
     '''
     self.assertEqual([
         ('x', 'y' * 128)
     ], list(fastcgi.parseNameValues(fastcgi.writeNameValue('x',
                                                            'y' * 128))))
コード例 #3
0
ファイル: test_fastcgi.py プロジェクト: Almad/twisted
 def testParseLongName(self):
     '''
     Test the code paths for parsing a name or value with >= 128 bytes. The
     length prefixing is done differently in this case.
     '''
     self.assertEqual(
             [('x'*128, 'y')],
             list(fastcgi.parseNameValues(fastcgi.writeNameValue('x'*128, 'y'))))
コード例 #4
0
 def testParseLongName(self):
     '''
     Test the code paths for parsing a name or value with >= 128 bytes. The
     length prefixing is done differently in this case.
     '''
     self.assertEqual([
         ('x' * 128, 'y')
     ], list(fastcgi.parseNameValues(fastcgi.writeNameValue('x' * 128,
                                                            'y'))))