def METHOD_NAME(self):
    p = ProfileFactory()
    p.settings.create(name="foo", value="bar")
    url = reverse("user-detail", args=[p.user.username])
    self.client.force_authenticate(user=p.user)
    res = self.client.get(url)
    self.assertEqual(res.data["settings"], [{"name": "foo", "value": "bar"}])