Fixed tests that were broken by the changes to the URL structure caused by the new-style profiles.
diff --git a/contrib_tests/buzz/test_simple_wrapper.py b/contrib_tests/buzz/test_simple_wrapper.py
index 15060c0..29bf67b 100644
--- a/contrib_tests/buzz/test_simple_wrapper.py
+++ b/contrib_tests/buzz/test_simple_wrapper.py
@@ -99,12 +99,12 @@
def test_can_post_without_user_id(self):
url = self.wrapper.post('test message')
self.assertTrue(url is not None)
- self.assertTrue(url.startswith('http://www.google.com/buzz/'))
+ self.assertTrue(url.startswith('https://profiles.google.com/'), url)
def test_can_post_with_user_id(self):
url = self.wrapper.post('test message', '108242092577082601423')
self.assertTrue(url is not None)
- self.assertTrue(url.startswith('http://www.google.com/buzz/'))
+ self.assertTrue(url.startswith('https://profiles.google.com/'), url)
def test_wrapper_returns_positive_value_for_hidden_follower_count_when_authorised(self):
count = self.wrapper.get_follower_count(user_id='108242092577082601423')
diff --git a/functional_tests/test_services.py b/functional_tests/test_services.py
index da4672a..7457762 100644
--- a/functional_tests/test_services.py
+++ b/functional_tests/test_services.py
@@ -99,7 +99,7 @@
self.assertEquals('buzz#person', person['kind'])
self.assertEquals('Google Buzz Team', person['displayName'])
self.assertEquals('111062888259659218284', person['id'])
- self.assertEquals('http://www.google.com/profiles/googlebuzz', person['profileUrl'])
+ self.assertEquals('https://profiles.google.com/googlebuzz', person['profileUrl'])
def test_can_get_user_profile_using_numeric_identifier(self):
buzz = build('buzz', 'v1')
@@ -109,7 +109,7 @@
self.assertEquals('buzz#person', person['kind'])
self.assertEquals('Test Account', person['displayName'])
self.assertEquals('108242092577082601423', person['id'])
- self.assertEquals('http://www.google.com/profiles/108242092577082601423', person['profileUrl'])
+ self.assertEquals('https://profiles.google.com/108242092577082601423', person['profileUrl'])
def test_can_get_followees_of_user(self):
buzz = build('buzz', 'v1')