def test_get_object(self):
        view = views.UserDetailView()
        view.request = self.request_factory.get('/')
        user = self.create_user()
        view.request.user = user
        view.kwargs = {'user_uuid': user.uuid}
        self.assertEqual(view.get_object(), user)
get_object should return the correct user.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UserDetailViewTest.test_get_object