Traceback (most recent call last):
File "./test.py", line 5, in <module>
AttributeError: 'module' object has no attribute 'setup'
The other bug was theirs: the code appeared to be working, but the GPIO pins weren't changing state. Turns out there's no error checking in the library (ugh). So it wasn't giving any errors when I failed to run the script as root.