order_by(model.Expenditure.id.desc()).first()
assert e.description == u'Updated bundt cake'
+ def test_edit_nonexistent(self):
+ response = self.app.get(url_for(controller='spend',
+ action='edit',
+ id=124234), status=404)
+
def tearDown(self):
expenditures = meta.Session.query(model.Expenditure).all()
for e in expenditures:
order_by(model.Transfer.id.desc()).first()
assert t.description == u'A new description'
+ def test_edit_nonexistent(self):
+ response = self.app.get(url_for(controller='transfer',
+ action='edit',
+ id=21424), status=404)
+
def tearDown(self):
transfers = meta.Session.query(model.Transfer).all()
for t in transfers: