Fix refresh token handling and add unit tests for oauth2client.client
diff --git a/samples/moderator/moderator.py b/samples/moderator/moderator.py
index c22f86e..93e3ff6 100644
--- a/samples/moderator/moderator.py
+++ b/samples/moderator/moderator.py
@@ -33,7 +33,7 @@
     flow = FlowThreeLegged(moderator_discovery,
                            consumer_key='anonymous',
                            consumer_secret='anonymous',
-                           user_agent='google-api-client-python-mdrtr-cmdline/1.0',
+                           user_agent='python-moderator-sample/1.0',
                            domain='anonymous',
                            scope='https://www.googleapis.com/auth/moderator',
                            #scope='tag:google.com,2010:auth/moderator',
diff --git a/samples/threadqueue/main.py b/samples/threadqueue/main.py
index d184f6d..63d092d 100644
--- a/samples/threadqueue/main.py
+++ b/samples/threadqueue/main.py
@@ -88,7 +88,7 @@
     flow = FlowThreeLegged(moderator_discovery,
                            consumer_key='anonymous',
                            consumer_secret='anonymous',
-                           user_agent='google-api-client-python-thread-sample/1.0',
+                           user_agent='python-threading-sample/1.0',
                            domain='anonymous',
                            scope='https://www.googleapis.com/auth/moderator',
                            xoauth_displayname='Google API Client Example App')