def setUp(self): self.api_name = "bluevia" self.seller, self.bluevia = make_seller_bluevia(uuid) self.list_url = self.get_list_url("verify-jwt") # TODO: when we get the developer secret, this will need fixing self.valid = get_client().create_jwt(id="foo", secret="some-unknown", **data)
def test_good(self): # TODO: when getting and storing the secret is stored out, # this test will need fixing. jwt = get_client().create_jwt(id="blarg", secret="some-unknown", **data) form = JWTValidation({"jwt": jwt, "seller": uuid}) assert form.is_valid(), form.errors