def test_get_by_id(self): art = Article("On the nature of foo") art.save() retrieved = Article.get_by_id(art.id) assert retrieved == art