def test_ResourceDesc(self):
        # Instantiate without args and then set
        rd1 = ResourceDesc()
        rd1.setResourceDesc(name='res1',res_type=ResourceTypes.RESTYPE_GENERIC)

        # Instantiate with args
        rd2 = ResourceDesc(name='res2',res_type=ResourceTypes.RESTYPE_GENERIC)

        # Instantiate with name only
        rd3 = ResourceDesc(res_type=ResourceTypes.RESTYPE_GENERIC)
 def __init__(self, **kwargs):
     kw = kwargs.copy() if kwargs else {}
     kw['res_type'] = 'rt_serviceinst'
     ResourceDesc.__init__(self, **kw)
     if len(kwargs) != 0:
         self.setServiceInstanceDesc(**kwargs)