pgp: don't assume protocol/micalg ordering in doctest output.
[pygrader.git] / pygrader / handler / grade.py
index 891495a06045c968cffc9b5bdbd695427a0b78a1..5d4f9a73f664a660e9a96ef95abb4369efdb42df 100644 (file)
@@ -96,7 +96,7 @@ def run(basedir, course, message, person, subject,
     ...     person=person, subject='[grade] {}, {}'.format(student.name, assignment.name))
     ... # doctest: +ELLIPSIS, +REPORT_UDIFF
     respond with:
-    Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="===============...=="
+    Content-Type: multipart/signed; ...protocol="application/pgp-signature"; ...boundary="===============...=="
     MIME-Version: 1.0
     Content-Disposition: inline
     Date: ...
@@ -137,7 +137,7 @@ def run(basedir, course, message, person, subject,
     ...     person=person, subject='[grade] {}, {}'.format(student.name, assignment.name))
     ... # doctest: +ELLIPSIS, +REPORT_UDIFF
     respond with:
-    Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="===============...=="
+    Content-Type: multipart/signed; ...protocol="application/pgp-signature"; ...boundary="===============...=="
     MIME-Version: 1.0
     Content-Disposition: inline
     Date: ...