def test_deletepage_ok(self):
    'Make sure that the delete page deletes the obj'
    self.add_feature_request()
    assert (db.session.query(FeatureRequest.query.filter().exists()).scalar() is True)
    response = self.client.post(url_for('feature_requests_delete', feature_request_id=self.fr.id))
    assert (db.session.query(FeatureRequest.query.filter().exists()).scalar() is False)
    assert (response.status == '302 FOUND')
Make sure that the delete page deletes the obj
def test_deletepage_ok(self):
    
    self.add_feature_request()
    assert (db.session.query(FeatureRequest.query.filter().exists()).scalar() is True)
    response = self.client.post(url_for('feature_requests_delete', feature_request_id=self.fr.id))
    assert (db.session.query(FeatureRequest.query.filter().exists()).scalar() is False)
    assert (response.status == '302 FOUND')