def test_nodes(self):
        hostname1 = u"192.0.2.101"
        uuid1 = uuid4()
        hostname2 = u"192.0.2.102"
        uuid2 = uuid4()
        self.cluster_state_service.apply_changes(
            [NodeState(uuid=uuid1, hostname=hostname1),
             NodeState(uuid=uuid2, hostname=hostname2)])
        return self.assertResultItems(
            b"GET", b"/state/nodes", None, OK,
            [{u"host": hostname1, "uuid": unicode(uuid1)},
             {u"host": hostname2, "uuid": unicode(uuid2)}],
        )
Build Sphinx documentation and display in browser.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/NodesStateTestsMixin.test_nodes--crossover with--dataset/ETHPy150Open robinandeer/chanjo/tasks.py/docs