Ejemplo n.º 1
0
 def test_lookup_user_exists(self):
     """ Ok. I guess we'll test this... """
     """ *Crosses fingers* I hope the things I just put in the db in the
     setup method are there """
     callback = BaseFacebookCallback()
     user = callback.lookup_user('facebookid')
     self.assertEquals(user, self.test_user)
Ejemplo n.º 2
0
 def test_lookup_user_does_not_exist(self):
     """ Ok. I guess we'll test this... """
     callback = BaseFacebookCallback()
     user = callback.lookup_user({'id':'bad-id'})
     self.assertEquals(user,None)