Merge branch 'master' of github.com:apache/incubator-ponymail-unit-tests
diff --git a/tests/test-parsing.py b/tests/test-parsing.py
index e9c87ac..7cf8b07 100755
--- a/tests/test-parsing.py
+++ b/tests/test-parsing.py
@@ -110,7 +110,8 @@
                 json = archie.compute_updates(fake_args, lid, False, message, message_raw)
                 body_sha3_256 = None
                 if json and json.get('body') is not None:
-                    body_sha3_256 = hashlib.sha3_256(json['body'].encode('utf-8')).hexdigest()
+                    if not json.get('html_source_only'):
+                        body_sha3_256 = hashlib.sha3_256(json['body'].encode('utf-8')).hexdigest()
                 if body_sha3_256 != test['body_sha3_256']:
                     errors += 1
                     sys.stderr.write("""[FAIL] parsing index %2u: Expected: %s Got: %s\n""" %