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