def test_token(self): self.paypal.token = 'token' self.paypal.secret = 'secret' self.paypal.save() form = GetPersonal({'seller': self.uuid}) assert form.is_valid()
def test_no_seller(self): form = GetPersonal() assert not form.is_valid()
def test_empty_token(self): form = GetPersonal({'seller': self.uuid}) assert not form.is_valid()