def test_get_default_value(self): request = Request({}) self.assertEqual(request.get('hoge', 'HOGE'), 'HOGE')
def test_get(self): request = Request({'hoge': 'HOGE'}) self.assertEqual(request.get('hoge'), 'HOGE')