def iconvergence_agent_tests_factory(fixture):
 class IConvergenceAgentTests(TestCase, ):
  '\n        Tests for ``IConvergenceAgent``.\n        '
  def test_connected(self):
   '\n            ``IConvergenceAgent.connected()`` takes an AMP instance.\n            '
   agent = fixture(self)
   agent.connected(connected_amp_protocol())
  def test_disconnected(self):
   '\n            ``IConvergenceAgent.disconnected()`` can be called after\n            ``IConvergenceAgent.connected()``.\n            '
   agent = fixture(self)
   agent.connected(connected_amp_protocol())
   agent.disconnected()
  def test_reconnected(self):
   '\n            ``IConvergenceAgent.connected()`` can be called after\n            ``IConvergenceAgent.disconnected()``.\n            '
   agent = fixture(self)
   agent.connected(connected_amp_protocol())
   agent.disconnected()
   agent.connected(connected_amp_protocol())
  def test_cluster_updated(self):
   '\n            ``IConvergenceAgent.cluster_updated()`` takes two ``Deployment``\n            instances.\n            '
   agent = fixture(self)
   agent.connected(connected_amp_protocol())
   agent.cluster_updated(Deployment(nodes=frozenset()), DeploymentState(nodes=[]))
  def test_interface(self):
   '\n            The object provides ``IConvergenceAgent``.\n            '
   agent = fixture(self)
   self.assertTrue(verifyObject(IConvergenceAgent, agent))
 return IConvergenceAgentTests

def iconvergence_agent_tests_factory ( fixture ) : class IConvergenceAgentTests ( TestCase , ) : def test_connected ( self ) : agent = fixture ( self ) agent . connected ( connected_amp_protocol ( ) ) def test_disconnected ( self ) : agent = fixture ( self ) agent . connected ( connected_amp_protocol ( ) ) agent . disconnected ( ) def test_reconnected ( self ) : agent = fixture ( self ) agent . connected ( connected_amp_protocol ( ) ) agent . disconnected ( ) agent . connected ( connected_amp_protocol ( ) ) def test_cluster_updated ( self ) : agent = fixture ( self ) agent . connected ( connected_amp_protocol ( ) ) agent . cluster_updated ( Deployment ( nodes = frozenset ( ) ) , DeploymentState ( nodes = [ ] ) ) def test_interface ( self ) : agent = fixture ( self ) self . assertTrue ( verifyObject ( IConvergenceAgent , agent ) ) return IConvergenceAgentTests
create tests that verify basic iconvergenceagent compliance .