def test_get_argument_with_unfilled_dict(self): data = {'args': {}} request = Request(**data) self.assertIsNone(request.get_argument('param'), None)
def test_get_argument_with_unfilled_dict_2(self): options = {} request = Request(**options) self.assertIsNone(request.get_argument('param'))
def test_get_argument(self): data = {'args': {'param': 'test'}} request = Request(**data) self.assertEqual(request.get_argument('param'), 'test')
def test_get_argument(self): options = {'args': {'param': 'test'}} request = Request(**options) self.assertEqual(request.get_argument('param'), 'test')