def test_user_data(): u = user_data(UserProfile(username='******', pk=1)) assert not u['anonymous']
def test_user_data(): u = user_data(UserProfile(username='******', pk=1)) eq_(u['anonymous'], False)