'``Configuration._deployment_from_configuration`` raises a
``ConfigurationError`` if the deployment_configuration specifies
a node that is not an IPv4 address.'

def test_error_on_hostname_not_ip_address(self):

    config = dict(nodes={u'node1.example.com': []}, version=1)
    exception = self.assertRaises(ConfigurationError, deployment_from_configuration, DeploymentState(), config, set())
    self.assertEqual(u'Node    "node1.example.com"    specified,    but    deployment    configuration    expects    an    IPv4    address.', exception.message)
