def test_anonymous_user(self):
        response = self.get_response(self.user.id, params=self.params)
        self.assertNotAuthenticated(response)

        user = User.objects.get(id=self.user.id)
        self.assertEqual(user.first_name, 'Test')
        self.assertEqual(user.last_name, 'User')
Clone of the very top of Paramiko 1.7.6 SSHClient.connect().
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_user.py/UserDetailPatchTestCase.test_anonymous_user--crossover with--dataset/ETHPy150Open fabric/fabric/tests/server.py/SSHServer._socket_info