def test_idna_email(self): assert DNSDB.parse_rdata( "[email protected].") == "test@fårsight.com."
def test_idna_dkim(self): assert DNSDB.parse_rdata("d=xn--frsight-exa.com.") == "d=fårsight.com."
def test_idna_multi(self): soa = DNSDB.parse_rdata( "xn--frsightscurity-lib5e.com. SOA fsi.io. hostmaster.xn--frsight-exa.xn--scurity-bya.com. " "2014081222 7200 3600 604800 3600") assert soa == "fårsightsécurity.com. SOA fsi.io. hostmaster.fårsight.sécurity.com. 2014081222 7200 3600 " \ "604800 3600"
def test_idna_spf(self): assert DNSDB.parse_rdata( "include:xn--frsight-exa.com.") == "include:fårsight.com."
def test_idna(self): assert DNSDB.parse_rdata( "10 mx.xn--frsight-exa.com.") == "10 mx.fårsight.com."