def testElementNote(self):
     mc = Session((StorageServiceTest.addr, StorageServiceTest.port), None)
     mc.start()
     testRoot = StorageService(mc).getElement(
         StorageServiceTest.testSpacePath)
     self.assertEqual(testRoot.readNote(), "")
     testRoot.writeNote("Test Note")
     self.assertEqual(testRoot.readNote(), "Test Note")
     mc.stop()
 def testNote(self):
     mc = Session((StorageServiceTest.addr, StorageServiceTest.port), None)
     mc.start()
     service = StorageService(mc)
     self.assertEqual(service.readNote(StorageServiceTest.testSpacePath),
                      u"")
     service.writeNote(StorageServiceTest.testSpacePath, u"Test Note")
     self.assertEqual(service.readNote(StorageServiceTest.testSpacePath),
                      u"Test Note")
     mc.stop()