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

All Samples(2)  |  Call(2)  |  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 testSaveData(self):
        dr = DataRepository.DataRepository()
        dr.saveData("wsn01", "testdata")
        self.assertEqual(2, len(dr.readAllData("wsn01")), "SaveToDB failed")