'Test the core.decode function'

def test_setenv(self):

    key = u'COLA_UNICODE_TEST'
    value = u'\u5b57\u9f8d'
    compat.setenv(key, value)
    self.assertTrue((key in os.environ))
    self.assertTrue(os.getenv(key))
    compat.unsetenv(key)
    self.assertFalse((key in os.environ))
    self.assertFalse(os.getenv(key))
