Exemplo n.º 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))
Exemplo n.º 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))