Ejemplo n.º 1
0
 def test_get_request_data_error(self, _fetch_sa_request):
     """Test get SA request data with return as 404 error."""
     rdbAnalyses = RdbAnalyses('dummy_request_id')
     with pytest.raises(Exception) as exception:
         rdbAnalyses.get_request_data()
     self.assertIs(exception.type, RDBInvalidRequestException)
Ejemplo n.º 2
0
 def test_get_request_data_success(self, _fetch_sa_request):
     """Test get SA request data."""
     rdbAnalyses = RdbAnalyses('dummy_request_id')
     self.assertEqual(rdbAnalyses.get_request_data(), {})