def test_get_selections(self):
        mock = MagicMock(return_value=[])
        with patch.dict(debconfmod.__salt__, {'cmd.run_stdout': mock}):
            with patch.object(debconfmod, '_unpack_lines', mock):
                self.assertEqual(debconfmod.get_selections(False), {})
Returns a user based on an authentication token.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/debconfmod_test.py/DebconfmodTestCase.test_get_selections--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/auth.py/Auth.get_user_by_token