'''
return [entry_point.resolve().__name__ for entry_point in
pkg_resources.iter_entry_points('pgwui.components')]
+
+
+def component_to_key(component):
+ '''Convert the component to a key used in an ini file's declaration
+ '''
+ return 'pgwui.{}'.format(component)
result = plugin.find_pgwui_components()
assert result == entry_points
+
+
+# component_to_key()
+
+def test_component_to_key():
+ '''The return value is as expected
+ '''
+ component = 'pgwui_example'
+
+ result = plugin.component_to_key(component)
+
+ assert result == 'pgwui.' + component