@@ -68,6 +68,7 @@ def test_get_matching_devices(self):
6868 instance = self ._plugin .create_instance (\
6969 'first_instance' ,0 ,'right_device*' ,None ,'test' ,'test' ,\
7070 {'default_option1' :'default_value2' })
71+ instance .plugin .init_devices ()
7172
7273 self .assertEqual (self ._plugin ._get_matching_devices (\
7374 instance ,['bad_device' ,'right_device1' ,'right_device2' ]),\
@@ -77,6 +78,7 @@ def test_get_matching_devices(self):
7778 instance = self ._plugin .create_instance (\
7879 'second_instance' ,0 ,'right_device*' ,'device[1-2]' ,'test' ,'test' ,\
7980 {'default_option1' :'default_value2' })
81+ instance .plugin .init_devices ()
8082
8183 device1 = DummyDevice ('device1' ,{'name' :'device1' })
8284 device2 = DummyDevice ('device2' ,{'name' :'device2' })
@@ -177,6 +179,10 @@ def _get_config_options(self):
177179 def _instance_cleanup (self , instance ):
178180 self .cleaned_instances .append (instance )
179181
182+ def _init_devices (self ):
183+ super (DummyPlugin ,self )._init_devices ()
184+ self ._devices_supported = True
185+
180186 def _get_device_objects (self , devices ):
181187 objects = []
182188 for device in devices :
0 commit comments