Example #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)}
     )
Example #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),
     })
Example #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),
     })
Example #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),
			})
Example #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),
			})
Example #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),
     })
Example #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),
			})
Example #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)}
     )
Example #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)}
     )