def test_deletion_view(self):
        self.clear_db()
        self.register_and_login('barney', 'abc')
        category = Category('drdre')
        db.session.add(category)
        db.session.commit()
        assert_equal(Category.query.count(), 1)
        rv = self.delete_category(1)
        print rv
        assert_equal(Category.query.count(), 0)
Test if deletion works properly
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/TestCategory.test_deletion_view