test for read set is breaking on model

stack trace:

======================================================================
ERROR: test_read (testviews.TestSetViews)
test that the read function pulls correct variables and works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ian/GitHub/wordseer_flask/tests/testviews.py", line 32,
in test_read
    response = c.get("/api/sets/?instance=foo&type=read&id=1")
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/werkz
eug/test.py", line 762, in get
    return self.open(*args, **kw)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/testing.py", line 108, in open
    follow_redirects=follow_redirects)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/werkz
eug/test.py", line 736, in open
    response = self.run_wsgi_app(environ, buffered=buffered)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/werkz
eug/test.py", line 659, in run_wsgi_app
    rv = run_wsgi_app(self.application, environ, buffered=buffered)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/werkz
eug/test.py", line 855, in run_wsgi_app
    app_iter = app(environ, start_response)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/Users/ian/GitHub/wordseer_flask/venv/lib/python2.7/site-packages/flask
/views.py", line 84, in view
    return self.dispatch_request(*args, **kwargs)
  File "/Users/ian/GitHub/wordseer_flask/app/wordseer/views/sets.py",
line 161, in dispatch_request
    result = self.operations[self.operation](self)
  File "/Users/ian/GitHub/wordseer_flask/app/wordseer/views/sets.py",
line 107, in read
    contents["ids"] = [item.id for item in requested_set.get_items()]
  File "/Users/ian/GitHub/wordseer_flask/app/models/sets.py", line 78,
in get_items
    return sequences
NameError: global name 'sequences' is not defined

----------------------------------------------------------------------