[PATCH 3/3] tests for email and name length
Daniel Axtens
dja at axtens.net
Sat Jul 1 14:28:44 AEST 2017
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
patchwork/tests/fuzztests/email-len.mbox | Bin 0 -> 925 bytes
patchwork/tests/fuzztests/name-len.mbox | Bin 0 -> 35351 bytes
patchwork/tests/test_parser.py | 4 +++-
3 files changed, 3 insertions(+), 1 deletion(-)
create mode 100644 patchwork/tests/fuzztests/email-len.mbox
create mode 100644 patchwork/tests/fuzztests/name-len.mbox
diff --git a/patchwork/tests/fuzztests/email-len.mbox b/patchwork/tests/fuzztests/email-len.mbox
new file mode 100644
index 0000000000000000000000000000000000000000..37df805437b009e814bac877c8a05a2b2ace1491
GIT binary patch
literal 925
zcmdr}QIFC<5Junle#L|r!<8-Df*dRd#|7?kJZQ+37!#wWv<t1mmb8n<>5ISE-{7pA
zxfq{(b()>oote(}&CE?%?5MI at 20g?!Q*=>T+^|zobn*KCm7_ at W_4?oYdt-I68zU$b
zCB+WWVf9HTR?)k~)pB}EVLN<J_FKiC%X@=aY_)1p5Y(ROJ%v1E3Og!PvP+%}zDvB)
zRTXcvn9o#aj8y1SQNE=Rb0hMUqAQ!xhZ<<y91?&i-x11qLs&H2JCriOi^>NG`p9N!
z4!|V`fcn`s_3 at QrSReIB+xicPKScKBxg5wY>ptra>p;GgJxmK at wXtIPu-A&LKHBzv
z8|P*S8a2|i at sv=;rdsP#T$`jwbF)#_#T3Psa~t3`QhijkTBm-7(P)I$7nI=9XO0W|
z;d!15V=^HT4En7edCv5yIkDvfi0I&yI}~uyvo<{TQ7}X8Ik_hd8OBe3mA~Wiy4#U3
zb3b`27O_pT`=b0TZgXSRBWCIn9Ilk|5x3hr0ka(tQ~9_`EU0YqTnU~-ydJV;4z7v2
wY4p2~Q^|2pw$9yupgOHGrdj7y$(AX5e0R*<*KC5f{3L<+YYF4i5`+ML0_^4N6#xJL
literal 0
HcmV?d00001
diff --git a/patchwork/tests/fuzztests/name-len.mbox b/patchwork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Xb=c+B{ajuA{i&?ga1MpMh?}y-4W)9~Ksz|7Bwl<2U
zDR_>vFsvBLp8>j0ncA1`Uq)Vrf3y9DZ8#66;7N-+KJ&M(c#%h?3ca7A$_#YhY!1-!
z(g#^F?ZCQXkxpv~P^^oZE;#<zDR|e;4QdbR+yo<UbL>ztkE4?C2K@%iFS43?Too-s
zKY<(#O{FyQXGs(=NKX|~GSI12<*wK~3h63a+ at Q9u^G(JV1k|mDYMY6$8NQkvj+x8B
zGVV>XbJPHW=~)5gC)EwR!<@176Y3L4d3WJQTM%YM6r=ALBpxvqOh)F!<F44+-R6P-
zr0Df?8!W$Iunno*p29zG$vmsxV4kJP=e+?-9f+}MA~~^?osMTqyVv(Ib){`t4Qnu%
z@%C0Z^NP>5q7wdG%{AL?w`G{L+m+Q7MMdeAm|@Iqx0cOs6=lBgL3hXe^AsT|r=8*q
z^QA6Ec0LPo+QAiN(PtnBtS+GP+gwsXW1#$0F_U#&@`X4GMSJs_>AB)3L<elvY=FUh
zecmiH(#@MZf}2g{Td4y{?7pELbj_O$Yd1IYky|+dlR?}JqC<G%R;<kS0IbYFt-0Pr
b?FNheHEwT%Sk0MucZl7HG=Cn%A|Up^z1l&>
literal 0
HcmV?d00001
diff --git a/patchwork/tests/test_parser.py b/patchwork/tests/test_parser.py
index c86ea1be3554..34c158441194 100644
--- a/patchwork/tests/test_parser.py
+++ b/patchwork/tests/test_parser.py
@@ -862,9 +862,11 @@ class FuzzTest(TestCase):
self._test_patch('year-out-of-range.mbox')
self._test_patch('date-oserror.mbox')
- def test_msgid(self):
+ def test_length_for_db(self):
self._test_patch('msgid-len.mbox')
self._test_patch('msgid-len2.mbox')
+ self._test_patch('email-len.mbox')
+ self._test_patch('name-len.mbox')
def test_hdr(self):
self._test_patch('refshdr.mbox')
--
2.11.0
More information about the Patchwork
mailing list