Exemple #1
0
 def test_0030_test_register_beacon(self):
     with app.test_request_context('/register', method='GET'):
         # now you can do something with the request until the
         # end of the with block, such as basic assertions:
         assert request.path == '/register'
         assert request.method == 'GET'
Exemple #2
0
 def test_0020_test_oauth(self):
     with app.test_request_context('/oauth2callback', method='GET'):
         # now you can do something with the request until the
         # end of the with block, such as basic assertions:
         assert request.path == '/oauth2callback'
         assert request.method == 'GET'