def testSyncSettingsSetting(self):
        thejson = keyvalues.getValue(keyvalues.KEY_SYNC_SETTINGS)
        thejson["newitem"] = "hallo"
        keyvalues.setValue(keyvalues.KEY_SYNC_SETTINGS, thejson)

        thenewjson = keyvalues.getValue(keyvalues.KEY_SYNC_SETTINGS)
        self.assertTrue(thenewjson.has_key("newitem"))

        thejson.pop("newitem")
        thejson = keyvalues.setValue(keyvalues.KEY_SYNC_SETTINGS, thejson)
    def testSyncSettingsSetting( self ):
        thejson = keyvalues.getValue( keyvalues.KEY_SYNC_SETTINGS )
        thejson["newitem"] = "hallo"
        keyvalues.setValue( keyvalues.KEY_SYNC_SETTINGS, thejson )

        thenewjson = keyvalues.getValue( keyvalues.KEY_SYNC_SETTINGS )
        self.assertTrue( thenewjson.has_key( "newitem" ) )

        thejson.pop( "newitem" )
        thejson = keyvalues.setValue( keyvalues.KEY_SYNC_SETTINGS, thejson )
 def load( self ):
     dadict = keyvalues.getValue( keyvalues.KEY_SYNC_SETTINGS )
     self.update( dadict )
 def testTestValueRetrieval( self ):
     thejson = keyvalues.getValue( keyvalues.KEY_TEST_VALUE )
     self.assertTrue( type( thejson ) == unicode, thejson )
 def testSyncSettingsRetrieval( self ):
     thejson = keyvalues.getValue( keyvalues.KEY_SYNC_SETTINGS )
     self.assertTrue( type( thejson ) == dict )
 def testTestValueRetrieval(self):
     thejson = keyvalues.getValue(keyvalues.KEY_TEST_VALUE)
     self.assertTrue(type(thejson) == unicode, thejson)
 def testSyncSettingsRetrieval(self):
     thejson = keyvalues.getValue(keyvalues.KEY_SYNC_SETTINGS)
     self.assertTrue(type(thejson) == dict)
 def load(self):
     dadict = keyvalues.getValue(keyvalues.KEY_SYNC_SETTINGS)
     self.update(dadict)