Fixed tests that were broken by the changes to the URL structure caused by the new-style profiles.

This commit is contained in:
ade@google.com
2011-03-13 00:46:21 +00:00
parent 205e73ab05
commit 1407107af8
2 changed files with 4 additions and 4 deletions

View File

@@ -99,12 +99,12 @@ class SimpleWrapperRemoteTest(unittest.TestCase):
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')

View File

@@ -99,7 +99,7 @@ class BuzzFunctionalTest(unittest.TestCase):
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 @@ class BuzzFunctionalTest(unittest.TestCase):
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')