@@ -841,6 +841,54 @@ def test_bw_parse(self):
841841 }
842842 self ._parse_and_compare ("google.co.bw" , data , expected_results )
843843
844+ def test_cm_parse (self ):
845+ data = """
846+ Domain Name: icp.cm
847+ Registry Domain ID: 1104110-RegCM
848+ Updated Date: 2025-05-27T04:46:44.214Z
849+ Creation Date: 2024-08-24T13:17:43.633Z
850+ Registry Expiry Date: 2026-08-24T13:17:44.316Z
851+ Domain Status: ok https://icann.org/epp#ok
852+ Registrar: Netcom.cm Sarl
853+ Reseller: NetSto Inc. - https://www.netsto.com
854+ Name Server: ns1.huaweicloud-dns.com
855+ Name Server: ns1.huaweicloud-dns.net
856+ Name Server: ns1.huaweicloud-dns.cn
857+ Name Server: ns1.huaweicloud-dns.org
858+ >>> Last update of WHOIS database: 2025-05-28T04:47:00.968Z <<<
859+
860+ For more information on EPP status codes, please visit https://icann.org/epp
861+
862+ TERMS OF USE: You are not authorized to access or query our Whois
863+ database through the use of electronic processes that are high-volume and
864+ automated. Whois database is provided by ANTIC as a service to the internet
865+ community on behalf of ANTIC accredited registrars and resellers.
866+
867+ The data is for information purposes only. ANTIC does not
868+ guarantee its accuracy. By submitting a Whois query, you agree to abide
869+ by the following terms of use: You agree that you may use this Data only
870+ for lawful purposes and that under no circumstances will you use this Data
871+ to: (1) allow, enable, or otherwise support the transmission of mass
872+ unsolicited, commercial advertising or solicitations via e-mail, telephone,
873+ or facsimile; or (2) enable high volume, automated, electronic processes
874+ that apply to ANTIC members (or their computer systems). The
875+ compilation, repackaging, dissemination or other use of this Data is prohibited.
876+ """
877+
878+ expected_results = {
879+ "domain_name" : "icp.cm" ,
880+ "registry_domain_id" : "1104110-RegCM" ,
881+ "updated_date" : datetime .datetime (2025 , 5 , 27 , 4 , 46 , 44 , 214000 ),
882+ "creation_date" : datetime .datetime (2024 , 8 , 24 , 13 , 17 , 43 , 633000 ),
883+ "expiration_date" : datetime .datetime (2026 , 8 , 24 , 13 , 17 , 44 , 316000 ),
884+ "status" : "ok https://icann.org/epp#ok" ,
885+ "registrar" : "Netcom.cm Sarl" ,
886+ "reseller" : "NetSto Inc. - https://www.netsto.com" ,
887+ "name_servers" : ['ns1.huaweicloud-dns.com' , 'ns1.huaweicloud-dns.net' , 'ns1.huaweicloud-dns.cn' ,
888+ 'ns1.huaweicloud-dns.org' ]
889+ }
890+ self ._parse_and_compare ("icp.cm" , data , expected_results )
891+
844892
845893if __name__ == "__main__" :
846894 unittest .main ()
0 commit comments