def test_accept_user_pk(self): self.assertEqual( hydroshare.user_from_id(self.user.pk), self.user, msg='lookup by user id failed' )
def test_accept_user_name(self): self.assertEqual( hydroshare.user_from_id(self.user.username), self.user, msg='lookup by user name failed' )
def test_accept_user_email(self): self.assertEqual( hydroshare.user_from_id(self.user.email), self.user, msg='lookup by user email failed' )
def test_accept_user_instance(self): self.assertEquals( hydroshare.user_from_id(self.user), self.user, msg='user passthrough failed', )