def check_different(alg, priv_type):
privk = priv_keys[alg][priv_type]<EOL>@Vows.batch<EOL>class Variance(Vows.Context):<EOL><INDENT>"""<STR_LIT>"""<EOL>def topic(self):<EOL><INDENT>"""<STR_LIT>"""<EOL>self.tokens = {}<EOL>for _ in range(<NUM_LIT:10>):<EOL><INDENT>yield jwt.generate_jwt(payload, privk, alg, timedelta(seconds=<NUM_LIT:5>))<EOL><DEDENT><DEDENT>def tokens_should_be_different(self, sjwt):<EOL><INDENT>"""<STR_LIT>"""<EOL>expect(self.tokens).Not.to_include(sjwt)<EOL>self.tokens[sjwt] = True<EOL><DEDENT>def teardown(self):<EOL><INDENT>"""<STR_LIT>"""<EOL>expect(len(self.tokens)).to_equal(<NUM_LIT:10>)<EOL><DEDENT><DEDENT>
Check all different for an algorith and private key