'Delete an avatar.'

def test_delete_avatar(self):

    self.test_upload_avatar()
    url = reverse('users.delete_avatar')
    self.client.login(username=self.u.username, password='testpass')
    r = self.client.post(url)
    user_profile = Profile.objects.get(user__username=self.u.username)
    eq_(302, r.status_code)
    eq_(('http://testserver/en-US' + reverse('users.edit_my_profile')), r['location'])
    eq_('', user_profile.avatar.name)
