github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/python/tests/unit/sdk/multiobj/test_object_names.py (about) 1 import unittest 2 3 from aistore.sdk.multiobj import ObjectNames 4 5 6 # pylint: disable=unused-variable 7 class TestObjectNames(unittest.TestCase): 8 def setUp(self): 9 self.name_list = ["obj-1", "obj-2"] 10 self.obj_names = ObjectNames(self.name_list) 11 12 def test_get_value(self): 13 self.assertEqual({"objnames": self.name_list}, self.obj_names.get_value()) 14 15 def test_iter(self): 16 self.assertEqual(self.name_list, list(self.obj_names))