'Tests adding a user to a group'

def test_group_add_member(self):

    anon = get_anonymous_user()
    normal = get_user_model().objects.get(username='norman')
    group = GroupProfile.objects.get(slug='bar')
    group.join(normal)
    self.assert_(group.user_is_member(normal))
    self.assertRaises(ValueError, (lambda : group.join(anon)))
