def do_fetch(self): # this breaks unit tests: #data = DummyMDSData() # this doesn't. Why?? data = BaseData() data.meta['mds_Data'] = self.acq._Data return data
def do_fetch(self): if self.connected: d=BaseData() d.meta["connected"]=True return d else: d=BaseData() d.meta["connected"]=False return d
def do_fetch(self): if self.connected: d = BaseData() d.meta["connected"] = True return d else: d = BaseData() d.meta["connected"] = False return d
def testNewData(self): test_data = BaseData() self.assertEqual(test_data.history.split('> ')[1], 'New BaseData')