def test_choose_district_block_cluster(self):
     dist = District(self.driver)
     result = dist.check_district()
     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 not working")
     block = DistrictsBlock(self.driver)
     result = block.check_districts_block()
     if result == 0:
         print("Cluster per block csv report download is working")
         print("on selection of each district and block")
     else:
         raise self.failureException("Cluster per block csv report download not is working")
     schools = DistrictBlockCluster(self.driver)
     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 not is working")
Beispiel #2
0
    def test_last7days_district_blockwise_clusterwise(self):
        block = DistrictsBlock(self.driver)
        result = block.check_last7days_districts_block()
        self.assertEqual(
            result,
            0,
            msg="Cluster per block csv report download not is working")

        schools = DistrictBlockCluster(self.driver)
        result = schools.check_last7_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 not is working")