Exemple #1
0
 def test_get_argument_with_unfilled_dict(self):
     data = {'args': {}}
     request = Request(**data)
     self.assertIsNone(request.get_argument('param'), None)
Exemple #2
0
 def test_get_argument_with_unfilled_dict_2(self):
     options = {}
     request = Request(**options)
     self.assertIsNone(request.get_argument('param'))
Exemple #3
0
 def test_get_argument(self):
     data = {'args': {'param': 'test'}}
     request = Request(**data)
     self.assertEqual(request.get_argument('param'), 'test')
Exemple #4
0
 def test_get_argument(self):
     options = {'args': {'param': 'test'}}
     request = Request(**options)
     self.assertEqual(request.get_argument('param'), 'test')