def test_get_context_data(self):
        user = self.create_user()
        self.client.login(username=user.email, password='moo')
        response = self.client.get(
            reverse('user_details',
                    kwargs={'user_uuid': user.uuid})
        )
        context = response.context
        self.assertEqual(context['nav_active_item'], user)
        self.assertEqual(context['show_banned_warning'], False)
        self.assertQuerysetItemsEqual(
            context['groups_joined'], user.groups_joined)
Context should have nav_active_item and show_banned_warning.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UserDetailViewTest.test_get_context_data