def METHOD_NAME(self):
    "Test user logout interface."
    c = Client()
    c.login(username=self.user.username, email=self.user.email,
            password=self.password)
    url = reverse("logout")
    resp = c.post(url, data={})
    self.assertEqual(resp.status_code, 302)