def test_updatepage_success_flash(self):
    'Make sure that the flash message is displayed correctly and we are\n        redirected to the list view'
    self.add_feature_request()
    self.add_other_objects()
    response = self.client.post(url_for('feature_requests_update', feature_request_id=self.fr.id), 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 (b'Feature request updated!' in response.data)
    assert (response.data.count(b'Update') == 1)
    assert (response.data.count(b'Delete') == 1)
    assert (self.cl.name.encode() in response.data)
    assert (self.pa.name.encode() in response.data)
Make sure that the flash message is displayed correctly and we are
redirected to the list view
def test_updatepage_success_flash(self):
    'Make sure that the flash message is displayed correctly and we are\n        redirected to the list view'
    self.add_feature_request()
    self.add_other_objects()
    response = self.client.post(url_for('feature_requests_update', feature_request_id=self.fr.id), 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 (b'Feature request updated!' in response.data)
    assert (response.data.count(b'Update') == 1)
    assert (response.data.count(b'Delete') == 1)
    assert (self.cl.name.encode() in response.data)
    assert (self.pa.name.encode() in response.data)