Esempio n. 1
0
 def testGetPage_chooseGeorefMtb_Fail_MissingParams(self):
     request = self.getRequestWithDb(testing.DummyRequest())
     result = getPage_chooseGeorefMtb(request)         
     print "Test: testGetPage_chooseGeorefMtb_Fail_MissingParams - Result: %s"%result        
     self.assertTrue(isinstance(result, dict))
Esempio n. 2
0
 def testGetPage_chooseGeorefMtb_Passed_2(self):
     params = {'blattnr':'100_100'}
     request = self.getRequestWithDb(testing.DummyRequest(params=params, post=params))
     result = getPage_chooseGeorefMtb(request)         
     print "Test: testGetTimestamps_forBlattnr_Passed_2 - Result: %s"%result        
     self.assertTrue(isinstance(result['paginator'], Page))