Example #1
0
 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
Example #2
0
 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
Example #3
0
 def do_fetch(self):
     if self.connected:
         d=BaseData()
         d.meta["connected"]=True
         return d
     else:
         d=BaseData()
         d.meta["connected"]=False
         return d
Example #4
0
 def do_fetch(self):
     if self.connected:
         d = BaseData()
         d.meta["connected"] = True
         return d
     else:
         d = BaseData()
         d.meta["connected"] = False
         return d
Example #5
0
 def testNewData(self):
     test_data = BaseData()
     self.assertEqual(test_data.history.split('> ')[1], 'New BaseData')