def test_non_empty_listpage(self):
    'Also that it can display multiple entries'
    fr = FeatureRequest(title='Title', description='Desc', client=None, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=None)
    db.session.add(fr)
    fr2 = FeatureRequest(title='Title', description='Desc', client=None, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=None)
    db.session.add(fr2)
    db.session.commit()
    response = self.client.get(url_for('feature_requests_view'))
    assert (response.data.count(b'Update') == 2)
    assert (response.data.count(b'Delete') == 2)
    assert (url_for('feature_requests_update', feature_request_id=1).encode() in response.data)
    assert (url_for('feature_requests_delete', feature_request_id=1).encode() in response.data)
Also that it can display multiple entries
def test_non_empty_listpage(self):
    
    fr = FeatureRequest(title='Title', description='Desc', client=None, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=None)
    db.session.add(fr)
    fr2 = FeatureRequest(title='Title', description='Desc', client=None, client_priority=1, target_date=datetime.date(2018, 1, 1), product_area=None)
    db.session.add(fr2)
    db.session.commit()
    response = self.client.get(url_for('feature_requests_view'))
    assert (response.data.count(b'Update') == 2)
    assert (response.data.count(b'Delete') == 2)
    assert (url_for('feature_requests_update', feature_request_id=1).encode() in response.data)
    assert (url_for('feature_requests_delete', feature_request_id=1).encode() in response.data)