def METHOD_NAME(self):
    u = UserFactory(username="something.something")
    url = reverse("user-detail", args=[u.username])
    res = self.client.get(url)
    self.assertEqual(res.status_code, 200)
    self.assertEqual(res.data["username"], u.username)