Пример #1
0
    def test_get_oauth_client_includes_key_and_secret(self):
        app.EVERNOTE_CONSUMER_KEY = "test_key"
        app.EVERNOTE_CONSUMER_SECRET = "test_secret"
        client = app.get_oauth_client()

        assert client.consumer.key == "test_key"
        assert client.consumer.secret == "test_secret"
Пример #2
0
    def test_get_oauth_client_includes_token(self):
        token = oauth.Token("test_token_string", "test_token_secret")
        client = app.get_oauth_client(token)

        assert client.token == token