Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/w/s/wsnserver-HEAD/Controller.py   wsnserver(Download)
    def __init__(self):
        '''
        Constructor
        '''
        self.dataRepository = DataRepository.DataRepository()

src/w/s/wsnserver-HEAD/DataRepositoryTest.py   wsnserver(Download)
    def setUp(self):
        dr = DataRepository.DataRepository()
        dr.saveData("wsn01", "testdata")
        dr.saveCMD("wsn01", "pause")
 
    def testSaveDevice(self):
        dr = DataRepository.DataRepository()
    def testReadDeviceList(self):
        dr = DataRepository.DataRepository()
        dr.saveDevice("wsn01", "0x123AC", "5")
        dr.saveDevice("wsn02", "0x124BC", "6")
        self.assertEqual(2, len(dr.readDeviceList()), 
                         "device number is not equal")
 
    def testReadCMD(self):
        dr = DataRepository.DataRepository()
    def testSaveCMD(self):
        dr = DataRepository.DataRepository()
        dr.saveCMD("wsn01", "pause")
        self.assertEqual("pause", dr.readCMD("wsn01"), 
                         "SaveCMD does not work.")

src/w/s/wsnserver-HEAD/ControllerTest.py   wsnserver(Download)
    '''
    controller = Controller.Controller()
    dataRepository = DataRepository.DataRepository()
 
    def setUp(self):