def test_updatepage_change_priorities(self):
    'The updatepage should also update the client priorities'
    self.add_other_objects()
    fr = FeatureRequest(title='Title', description='Desc', client=self.cl, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa)
    db.session.add(fr)
    fr2 = FeatureRequest(title='Title', description='Desc', client=self.cl, client_priority=2, target_date=datetime.date(2018, 1, 1), product_area=self.pa)
    db.session.add(fr2)
    db.session.commit()
    assert (FeatureRequest.query.filter_by(id=fr.id).first().client_priority == 1)
    assert (FeatureRequest.query.filter_by(id=fr2.id).first().client_priority == 2)
    response = self.client.post(url_for('feature_requests_update', feature_request_id=2), data=dict(title='Title', description='Desc', client=self.cl.id, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa.id), follow_redirects=True)
    assert (response.status == '200 OK')
    assert (FeatureRequest.query.filter_by(id=fr.id).first().client_priority == 2)
    assert (FeatureRequest.query.filter_by(id=fr2.id).first().client_priority == 1)
The updatepage should also update the client priorities
def test_updatepage_change_priorities(self):
    
    self.add_other_objects()
    fr = FeatureRequest(title='Title', description='Desc', client=self.cl, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa)
    db.session.add(fr)
    fr2 = FeatureRequest(title='Title', description='Desc', client=self.cl, client_priority=2, target_date=datetime.date(2018, 1, 1), product_area=self.pa)
    db.session.add(fr2)
    db.session.commit()
    assert (FeatureRequest.query.filter_by(id=fr.id).first().client_priority == 1)
    assert (FeatureRequest.query.filter_by(id=fr2.id).first().client_priority == 2)
    response = self.client.post(url_for('feature_requests_update', feature_request_id=2), data=dict(title='Title', description='Desc', client=self.cl.id, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=self.pa.id), follow_redirects=True)
    assert (response.status == '200 OK')
    assert (FeatureRequest.query.filter_by(id=fr.id).first().client_priority == 2)
    assert (FeatureRequest.query.filter_by(id=fr2.id).first().client_priority == 1)