def test_has_token_should_check_for_access_token(self): is_valid = app.has_token({"access_token": "123token"}) self.assertTrue(is_valid)
def test_has_token_should_return_false_when_value_is_empty(self): is_valid = app.has_token({"access_token": ""}) self.assertFalse(is_valid)
def test_has_token_without_access_token(self): is_valid = app.has_token({}) self.assertFalse(is_valid)