# import unittest # from gradio.context import Context # class TestContext(unittest.TestCase): # def test_context(self): # self.assertEqual(Context.id, 0) # Context.id += 1 # self.assertEqual(Context.id, 1) # Context.root_block = {} # Context.root_block["1"] = 1 # self.assertEqual(Context.root_block, {"1": 1}) # if __name__ == "__main__": # unittest.main()