Supplement a unit test case for 'get_resources'

the test case for api.extensions.ExtensionDescriptor

Change-Id: I36f817b46a55de63ec51ae8995e053cd7ed5253f
This commit is contained in:
shanyunfan 2023-05-25 13:49:35 +08:00
parent d29f36c61e
commit 61aae3d074

View File

@ -13,10 +13,15 @@
# under the License.
import unittest
from venus.api import extensions
from venus.api.extensions import ExtensionDescriptor
from venus.api.extensions import ExtensionManager
class TestExtensions(unittest.TestCase):
def setUp(self):
self.extensions = extensions
self.extension_descriptor = ExtensionDescriptor(ExtensionManager())
super(TestExtensions, self).setUp()
def test_get_resources(self):
result = self.extension_descriptor.get_resources()
self.assertEqual(result, [])