Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (14 sloc) 0.447 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import random
import string
from base import *
from util import *

LENGTH = 10*1024


class Test (TestBase):
    def __init__ (self):
        TestBase.__init__ (self, __file__)
        self.name = "10k random"

        self.request = "GET /10k HTTP/1.0\r\n"
        self.expected_error = 200

    def Prepare (self, www):
        f = self.WriteFile (www, "10k", 0444, str_random (LENGTH))
        self.expected_content = "file:" + f



Something went wrong with that request. Please try again.