'Tests the 404 response, then add item
and test the success response'

def _test_model(self, name):

    login(self.app, u'test@example.com', u'test')
    path = get_path(1, (name + 's'), 'page')
    response = self.app.get(path, follow_redirects=True)
    self.assertEqual(response.status_code, 404)
    with app.test_request_context():
        create_services(1)
    response = self.app.get(path, follow_redirects=True)
    self.assertEqual(response.status_code, 200)
    self.assertIn(('Test' + str(name).title()), response.data)
