コード例 #1
0
ファイル: tests.py プロジェクト: paulcwatts/1hph
 def test_5_fill_profile(self):
     # It's easiest to test with a public profile.
     auth = twitter.get_auth_for_self()
     user = self.enabled_user
     profile = twitter.fill_profile(user, auth=auth)
     self.assert_(profile)
     self.assertEquals(profile.user_location, "Seattle, WA")
     self.assertEquals(user.first_name, "One Hour Photo")
     self.assertEquals(user.last_name, "Hunt!")
     self.assert_(profile.photo)
     self.assert_(profile.photo.url)
     self.assert_(profile.photo_width > 0)
     self.assert_(profile.photo_height > 0)