'Verify is_valid_hostname can parse hostnames with trailing periods'

def test_utils_is_valid_hostname_ends_with_dot(self):

    hostname = 'foo.example.com.'
    res = is_valid_hostname(hostname)
    self.assertTrue(res)
