def METHOD_NAME(self):
    # doesn't blow up
    Record.new(
        self.zone,
        'www',
        {'type': 'CNAME', 'ttl': 600, 'value': 'foo.bar.com.'},
    )
    # root cname is a no-no
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone,
            '',
            {'type': 'CNAME', 'ttl': 600, 'value': 'foo.bar.com.'},
        )
    self.assertEqual(['root CNAME not allowed'], ctx.exception.reasons)
    # not a valid FQDN
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone, 'www', {'type': 'CNAME', 'ttl': 600, 'value': '___.'}
        )
    self.assertEqual(
        ['CNAME value "___." is not a valid FQDN'], ctx.exception.reasons
    )
    # missing trailing .
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone,
            'www',
            {'type': 'CNAME', 'ttl': 600, 'value': 'foo.bar.com'},
        )
    self.assertEqual(
        ['CNAME value "foo.bar.com" missing trailing .'],
        ctx.exception.reasons,
    )
    # doesn't allow urls
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone,
            'www',
            {'type': 'CNAME', 'ttl': 600, 'value': 'https://google.com'},
        )
    self.assertEqual(
        ['CNAME value "https://google.com" is not a valid FQDN'],
        ctx.exception.reasons,
    )
    # doesn't allow urls with paths
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone,
            'www',
            {
                'type': 'CNAME',
                'ttl': 600,
                'value': 'https://google.com/a/b/c',
            },
        )
    self.assertEqual(
        ['CNAME value "https://google.com/a/b/c" is not a valid FQDN'],
        ctx.exception.reasons,
    )
    # doesn't allow paths
    with self.assertRaises(ValidationError) as ctx:
        Record.new(
            self.zone,
            'www',
            {'type': 'CNAME', 'ttl': 600, 'value': 'google.com/some/path'},
        )
    self.assertEqual(
        ['CNAME value "google.com/some/path" is not a valid FQDN'],
        ctx.exception.reasons,
    )