Skip to content

Commit

Permalink
Fix plugs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenadia committed Sep 20, 2017
1 parent 3bf4139 commit bce1ff7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/plugs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,15 @@ def test_initialize(self):
AdderPlug.LAST_INSTANCE,
self.plug_manager.provide_plugs(
(('adder_plug', AdderPlug),))['adder_plug'])
self.assertItemsEqual(
{'plug_states': {'plugs_test.AdderPlug': {'number': 0}},
'xmlrpc_port': None}, self.plug_manager._asdict())
self.assertItemsEqual(self.plug_manager._asdict(), {
'plug_descriptors': {
'plugs_test.AdderPlug': plugs.PlugDescriptor('plugs_test.AdderPlug'),
},
'plug_states': {
'plugs_test.AdderPlug': {'number': 0},
},
'xmlrpc_port': None,
})
self.assertEquals('CREATED', AdderPlug.LAST_INSTANCE.state)

@test.yields_phases
Expand Down

0 comments on commit bce1ff7

Please sign in to comment.