'All nodes in the current cluster state are returned.'

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('GET', '/state/nodes', None, OK, [{u'host': hostname1, 'uuid': unicode(uuid1)}, {u'host': hostname2, 'uuid': unicode(uuid2)}])
