def test_createpage_success(self):
    'The createpage should properly update the object'
    self.add_feature_request()
    self.add_other_objects()
    newtitle = 'The new title'
    response = self.client.post(url_for('feature_requests_update', feature_request_id=self.fr.id), data=dict(title=newtitle, description='Desc', client=self.cl.id, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa.id))
    assert (response.status == '302 FOUND')
    assert (FeatureRequest.query.filter_by(id=self.fr.id).first().title == newtitle)
The createpage should properly update the object
def test_createpage_success(self):
    
    self.add_feature_request()
    self.add_other_objects()
    newtitle = 'The new title'
    response = self.client.post(url_for('feature_requests_update', feature_request_id=self.fr.id), data=dict(title=newtitle, description='Desc', client=self.cl.id, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa.id))
    assert (response.status == '302 FOUND')
    assert (FeatureRequest.query.filter_by(id=self.fr.id).first().title == newtitle)