def test_schoolwise_csv_download(self):
     block = ClusterPerBlockCsvDownload(self.driver, self.year, self.month)
     result = block.check_school_level_csv_download()
     if result == 0:
         print("School per cluster csv report download is working")
     else:
         raise self.failureException("School per cluster csv report download is working")
 def test_choose_district_block_cluster(self):
     dist = DistrictCsvDownload(self.driver, self.year, self.month)
     result = dist.check_districts_csv_download()
     if result == 0:
         print("Block per district csv report download is working")
         print("on selection of each district")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Block per district csv report download is working")
     block = ClusterPerBlockCsvDownload(self.driver, self.year, self.month)
     result = block.check_csv_download()
     if result == 0:
         print("Cluster per block csv report download is working")
         print("on selection of each district and block")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Cluster per block csv report download is working")
     schools = DistrictBlockCluster(self.driver, self.year, self.month)
     result = schools.check_district_block_cluster()
     if result == 0:
         print("Schools per cluster csv download report is working")
         print("on selection of each district,block and cluster")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Schools per cluster csv report download is working")
 def test_cluster_per_block_csv_download(self):
     block = ClusterPerBlockCsvDownload(self.driver,self.year,self.month)
     result = block.check_csv_download()
     if result == 0:
         print("Cluster per block csv report download is working")
     else:
         raise self.failureException("Cluster per block csv report download is working")