Example #1
0
 def test_refresh_data_post(self):
     StatusRefreshPage(self.request, self.response).post()
     html = self.response.out.getvalue()
     self.assertTrue(re.search('datastore updated', html))
Example #2
0
 def test_refresh_data_get(self):
     from dashboard import StatusRefreshPage
     StatusRefreshPage(self.request, self.response).get()
     html = self.response.out.getvalue()
     self.assertTrue(re.search('datastore updated', html))