Example #1
0
 def test_disposability(self):
     disposable_session = session_from_token(
         self.auth_session._paypal_token, _MODE)
     self.assertEqual(disposable_session.status, SessionStatus.ACTIVE)
     test_disposability(disposable_session)
     self.assertEqual(disposable_session.status, SessionStatus.DISPOSED)
Example #2
0
 def test_session_from_token(self):
     token_session = session_from_token(self.auth_session._paypal_token,
                                        _MODE)
     self.assertEqual(token_session.status, SessionStatus.ACTIVE)