예제 #1
0
 def test_list_graphs_Request(self):
     try:
         response = graphRequest().list_graphs()
         self.assertEqual(response, 200)
         print("The list_graphs HTTP 200 OK success status response code")
     except AssertionError:
         print("The list_graphs request was not succeeded")
예제 #2
0
 def test_get_delete_graph_Request(self):
     try:
         response = graphRequest().delete_graph(2)
         self.assertEqual(response, 200)
         print("The delete_graph HTTP 200 OK success status response code")
     except AssertionError:
         print("The delete_graph request has not succeeded")
예제 #3
0
 def test_delete_graph_Request(self):
     try:
         response = graphRequest().delete_graph("15")
         self.assertEqual(response, 200)
         print(
             "The plot_graph_NDS_IMR HTTP 200 OK success status response code"
         )
     except AssertionError:
         print("The deleting graph request was not succeeded")
예제 #4
0
 def test_get_plot_graph_NDS_IMRT_all_Request(self):
     try:
         response = graphRequest().plot_graph_NDS_IMRT(
             "all", "{\"Drever\": [308], \"Avocet\": [106, 302]}")
         self.assertEqual(response, 200)
         print(
             "The plot_graph_NDS_IMR HTTP 200 OK success status response code"
         )
     except AssertionError:
         print("The plot_graph_NDS_IMR request was not succeeded")