def test_sanitize_token_rejects_goofy_token(self): token = 'ddddeeeeaaaadddd bbbbeeeeeeeefff' assert csrf._sanitize_token(token) is None
def test_sanitize_token_passes_through_good_token(self): token = 'ddddeeeeaaaaddddbbbbeeeeeeeeffff' assert csrf._sanitize_token(token) == token