'The metadata is returned as a dictionary.'

def test_success(self):

    expected_value = random_name(self)
    with temporary_mount(self.device.device) as mountpoint:
        metadata_file = mountpoint.descendant(METADATA_RELATIVE_PATH)
        metadata_file.parent().makedirs()
        metadata_file.setContent(json.dumps({'test_key': expected_value}))
    result = metadata_from_config_drive(config_drive_label=self.label)
    self.assertEqual(expected_value, result['test_key'])
