Refactored comments unittest to work with optional gravatar feature
@@ -305,6 +305,7 @@ class TestComments(unittest.TestCase):
rv = loads(rv.data)
for key in comments.API.FIELDS:
+ if key in rv:
rv.pop(key)
self.assertListEqual(list(rv.keys()), [])
