def METHOD_NAME(self):
    names = {socket.getfqdn('localhost'), 'localhost'}
    for name in names:
        self.test_user2.dnstouser_set.create(dns_name=name)
    self._assertBackend(self.test_user2)