'Tests -
1. When just one item, check if next and prev urls are empty
2. When one more item added, limit results to 1 and see if
next is not empty
3. start from position 2 and see if prev is not empty'

def _test_model(self, name):

    login(self.app, u'test@example.com', u'test')
    if (name == 'event'):
        path = get_path('page')
    else:
        path = get_path(1, (name + 's'), 'page')
    data = self._json_from_url(path)
    self.assertEqual(data['next'], '')
    self.assertEqual(data['previous'], '')
    with app.test_request_context():
        create_event(name='TestEvent2')
        create_services(1)
    data = self._json_from_url((path + '?limit=1'))
    self.assertIn('start=2', data['next'])
    self.assertEqual(data['previous'], '')
    data = self._json_from_url((path + '?start=2'))
    self.assertIn('limit=1', data['previous'])
    self.assertEqual(data['next'], '')
    self.assertIn('http', data['previous'])
