github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/python/tests/unit/sdk/test_list_object_flag.py (about) 1 import unittest 2 3 from aistore.sdk import ListObjectFlag 4 from tests.utils import test_cases 5 6 7 # pylint: disable=unused-variable 8 class TestListObjectFlag(unittest.TestCase): 9 @test_cases( 10 ([], 0), 11 ([ListObjectFlag.ALL], 2), 12 ([ListObjectFlag.ONLY_REMOTE_PROPS], 1024), 13 ([ListObjectFlag.DELETED, ListObjectFlag.NAME_ONLY], 20), 14 ) 15 def test_join_flags(self, test_case): 16 self.assertEqual(test_case[1], ListObjectFlag.join_flags(test_case[0]))