Пример #1
0
 def test_upload_3(self):
     handler = MyHandler()
     f = open("nalmanza-WC1.xml")
     s = ""
     for line in f:
         s += line
     handler.request = Request(
         {"ACTION": "/xmlupload", "METHOD": "get", "wsgi.input": StringIO(s), "CONTENT_LENGTH": len(s)}
     )
Пример #2
0
 def test_search_4(self):
     handler = MyHandler()
     form = 'searchKeyword=Kony'
     handler.request = Request({
         'ACTION': '/searchQuery',
         'METHOD': 'get',
         'wsgi.input': StringIO(form),
         'CONTENT_LENGTH': len(form),
     })
Пример #3
0
 def test_export_3(self):
     handler = MyHandler()
     s = "<crises>name </crises>"
     handler.request = Request({
         'ACTION': '/xmlExport',
         'METHOD': 'get',
         'wsgi.input': StringIO(s),
         'CONTENT_LENGTH': len(s),
     })
Пример #4
0
	def test_search_4(self):
		handler = MyHandler()
		form = 'searchKeyword=Kony'
		handler.request = Request({
			'ACTION': '/searchQuery',
			'METHOD': 'get',
			'wsgi.input': StringIO(form),
			'CONTENT_LENGTH': len(form),
			})
Пример #5
0
	def test_export_3 (self):
		handler = MyHandler()
		s = "<crises>name </crises>"
		handler.request = Request({
			'ACTION': '/xmlExport',
			'METHOD': 'get',
			'wsgi.input': StringIO(s),
			'CONTENT_LENGTH': len(s),
			})
Пример #6
0
 def test_upload_3(self):
     handler = MyHandler()
     f = open('nalmanza-WC1.xml')
     s = ""
     for line in f:
         s += line
     handler.request = Request({
         'ACTION': '/xmlupload',
         'METHOD': 'get',
         'wsgi.input': StringIO(s),
         'CONTENT_LENGTH': len(s),
     })
Пример #7
0
	def test_upload_3 (self):
		handler = MyHandler()
		f = open ('nalmanza-WC1.xml')
		s = ""
		for line in f:
			s += line
		handler.request = Request({
			'ACTION': '/xmlupload',
			'METHOD': 'get',
			'wsgi.input': StringIO(s),
			'CONTENT_LENGTH': len(s),
			})
Пример #8
0
 def test_search_4(self):
     handler = MyHandler()
     form = "searchKeyword=Kony"
     handler.request = Request(
         {"ACTION": "/searchQuery", "METHOD": "get", "wsgi.input": StringIO(form), "CONTENT_LENGTH": len(form)}
     )
Пример #9
0
 def test_export_3(self):
     handler = MyHandler()
     s = "<crises>name </crises>"
     handler.request = Request(
         {"ACTION": "/xmlExport", "METHOD": "get", "wsgi.input": StringIO(s), "CONTENT_LENGTH": len(s)}
     )