Commits

Anonymous committed 4f0188d

moar tests

Comments (0)

Files changed (1)

tests/test_models.py

         db.session.commit()
         assert Post.query.deadpooled().count() == 1
 
+    def test_jsonify(self):
+
+        d = self.post.json
+        assert d['title'] == self.post.title
+
+        json = Post.query.jsonify()
+
+        assert json[0]['title'] == self.post.title
+
     def test_tags(self):
 
         assert self.post.taglist == []