def test_opportunity(self): account = Account(name="John SARL") opty = Opportunity(name="1000 widgets") opty.account = account self.check_editable(opty) d = opty.to_dict() j = opty.to_json()