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

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

src/w/s/wsnserver-HEAD/DataRepositoryTest.py   wsnserver(Download)
    def setUp(self):
        dr = DataRepository.DataRepository()
        dr.saveData("wsn01", "testdata")
        dr.saveCMD("wsn01", "pause")
 
    def testReadCMD(self):
        dr = DataRepository.DataRepository()
        dr.saveCMD("wsn01", "pause")
        self.assertEqual("pause", dr.readCMD("wsn01"), 
                         "ReadCMD does not work.")
 
    def testSaveCMD(self):
        dr = DataRepository.DataRepository()
        dr.saveCMD("wsn01", "pause")