Exemple #1
0
 def detail(self):
     num_of_details = len(self.program_details)
     winning_detail = URLManager.getRandom(num_of_details) - 1
     response = self.client.get(self.program_details[winning_detail])
     print response.status_code
Exemple #2
0
 def standardpage(self):
     num_of_urls = len(self.standard_content_pages)
     winning_url = URLManager.getRandom(num_of_urls) - 1
     self.client.get(self.standard_content_pages[winning_url])
     print "standard content type"
Exemple #3
0
 def sort(self):
     num_of_param = len(self.sort_param)
     winning_param = URLManager.getRandom(num_of_param) - 1
     response = self.client.get(self.sort_param[winning_param])
     print response.status_code