def test_refresh_data_post(self): StatusRefreshPage(self.request, self.response).post() html = self.response.out.getvalue() self.assertTrue(re.search('datastore updated', html))
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))