def test_clear_and_reload(self): loader = ExtensionLoader() assert_greater(len(loader.list_devices()), 1) loader.clear() loader.update(paths=[EXTDIR, ]) devices = loader.list_devices() assert_equal(len(devices), 1) assert_equal(devices[0].name, 'test-device') assert_equal(len(loader.list_extensions()), 1)