示例#1
0
 def test_has_token_should_check_for_access_token(self):
     is_valid = app.has_token({"access_token": "123token"})
     self.assertTrue(is_valid)
示例#2
0
 def test_has_token_should_return_false_when_value_is_empty(self):
     is_valid = app.has_token({"access_token": ""})
     self.assertFalse(is_valid)
示例#3
0
 def test_has_token_without_access_token(self):
     is_valid = app.has_token({})
     self.assertFalse(is_valid)