class GravatarProfileTestCase(unittest.TestCase):
    """Test case for the Gravatar class and the get_profile method."""
    def setUp(self):
        self.g = Gravatar('*****@*****.**')

    def test_without_params(self):
        """Test a get_profile with default parameters."""
        profile_url = 'http://www.gravatar.com/0bc83cb571cd1c50ba6f3e8a78ef1346'
        result = self.g.get_profile()
        self.assertEqual(profile_url, result)
Example #2
0
class GravatarProfileTestCase(unittest.TestCase):
    """Test case for the Gravatar class and the get_profile method."""

    def setUp(self):
        self.g = Gravatar('*****@*****.**')

    def test_without_params(self):
        """Test a get_profile with default parameters."""
        profile_url = 'http://www.gravatar.com/0bc83cb571cd1c50ba6f3e8a78ef1346'
        result = self.g.get_profile()
        self.assertEqual(profile_url, result)