示例#1
0
 def tearDown(self):
     if not self.class_being_tested or not self.base_url:
         return
     enhydris_api.delete_model(self.base_url, self.cookies,
                               'Timeseries', self.timeseries_id2)
     enhydris_api.delete_model(self.base_url, self.cookies,
                               'Timeseries', self.timeseries_id1)
示例#2
0
 def tearDown(self):
     if not self.base_url:
         return
     enhydris_api.delete_model(self.base_url, self.cookies,
                               'Timeseries', self.timeseries_id)
示例#3
0
 def tearDown(self):
     for parm in self.parameters:
         if parm['ts_id']:
             enhydris_api.delete_model(self.base_url, self.cookies,
                                       'Timeseries', parm['ts_id'])
示例#4
0
 def tearDown(self):
     parms = settings.BITIA_TEST_ENHYDRIS_INSTALLATION
     enhydris_api.delete_model(parms['base_url'], self.cookies, 'Station',
                               self.station1_id)
     enhydris_api.delete_model(parms['base_url'], self.cookies, 'Station',
                               self.station2_id)