'Delete a group avatar.'

def test_delete_avatar(self):

    self.test_upload_avatar()
    url = reverse('groups.delete_avatar', locale='en-US', args=[self.group_profile.slug])
    r = self.client.get(url)
    eq_(200, r.status_code)
    r = self.client.post(url)
    eq_(302, r.status_code)
    url = reverse('groups.profile', args=[self.group_profile.slug])
    eq_(('http://testserver/en-US' + url), r['location'])
    gp = GroupProfile.objects.get(slug=self.group_profile.slug)
    eq_('', gp.avatar.name)
