<prompt> Kujenga majaribio Suite katika Python kuangalia kama input kamba ni halali anwani ya barua pepe.  <response>: pythonimport unittestdef is_valid_emailemail: if in email: username, domain email.split if . in domain: Check if the domain has any special characterexcept . if anychar.isdigit or char.isalpha or char . for char in domain: return True return Falseclass TestEmailValidatorunittest.TestCase: def test_valid_emailsself: emails for email in emails: self.assertTrueis_valid_emailemail def test_invalid_emailsself: emails plainaddress, missingatsign.com for email in emails: self.assertFalseis_valid_emailemail def test_invalid_domainsself: emails username.com, username.a for email in emails: self.assertFalseis_valid_emailemail def test_invalid_chars_in_domainself: emails for email in emails: self.assertFalseis_valid_emailemailif __name__ __main__: unittest.main 