Beispiel #1
0
 def test_square(self, setup):
     square = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.square(square[3][1])
     results = page.get_page_results()
     expected_results = pages.results.get_square_results(square[3][0])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #2
0
 def test_hexagon(self, setup):
     hexagon = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.hexagon(hexagon[9][1])
     results = page.get_page_results()
     expected_results = pages.results.get_hexagon_results(hexagon[9][0])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #3
0
 def test_rhombus(self, setup):
     rhombus = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.rhombus(rhombus[5][1], rhombus[5][3])
     results = page.get_page_results()
     expected_results = pages.results.get_rhombus_results(
         rhombus[5][0], rhombus[5][2])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #4
0
 def test_rectangle(self, setup):
     rectangle = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.rectangle(rectangle[4][1], rectangle[4][3])
     results = page.get_page_results()
     expected_results = pages.results.get_rectangle_results(
         rectangle[4][0], rectangle[4][2])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #5
0
 def test_circle(self, setup):
     circle = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.circle(circle[0][1], circle[0][3])
     results = page.get_page_results()
     expected_results = pages.results.get_circle_results(
         circle[0][0], circle[0][2])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #6
0
 def test_polygon(self, setup):
     polygon = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.polygon(polygon[10][1], polygon[10][3])
     results = page.get_page_results()
     expected_results = pages.results.get_polygon_results(
         polygon[10][0], polygon[10][2])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #7
0
 def test_parallelogram(self, setup):
     parallelogram = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.parallelogram(parallelogram[6][1], parallelogram[6][3],
                        parallelogram[6][5])
     results = page.get_page_results()
     expected_results = pages.results.get_parallelogram_results(
         parallelogram[6][0], parallelogram[6][2], parallelogram[6][4])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]
Beispiel #8
0
 def test_triangle(self, setup):
     triangle = Data.get_data()
     message = Data.setup_data()
     page = Page(self.driver)
     page.triangle(triangle[1][1], triangle[1][3], triangle[1][5],
                   triangle[1][7])
     results = page.get_page_results()
     expected_results = pages.results.get_triangle_results(
         triangle[1][0], triangle[1][2], triangle[1][4], triangle[1][6])
     assert results[0] == expected_results[0], message[0]
     assert results[1] == expected_results[1], message[0]