'If no UUID is given, a UUID is generated from the hostname.
This is done for backwards compatibility with existing tests, and
should be removed eventually.'

def test_no_uuid(self):

    node = NodeState(hostname=u'1.2.3.4')
    self.assertIsInstance(node.uuid, UUID)
