Example #1
0
    def test_bad_domain(self):
        """Test a bad domain

        Ensure we get back an empty string

        """
        response = check.whois(BAD_DOMAIN)
        self.assertFalse(response)
        self.assertIsInstance(response, basestring)
Example #2
0
    def test_good_domain(self):
        """Test a good domain name

        Ensure we get back a string with some contents

        """
        response = check.whois(GOOD_DOMAIN)
        self.assertTrue(response)
        self.assertIsInstance(response, basestring)