'Collect hostname metadata'

def test_hostname_metadata(self):

    c = Collector({'collect_instance_metadata': True}, None, {}, 'foo')
    metadata = c._get_hostname_metadata()
    assert ('hostname' in metadata)
    assert ('socket-fqdn' in metadata)
    assert ('socket-hostname' in metadata)
