Fix unit tests for sql: cache media_id.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 1 Apr 2012 20:02:06 +0000 (22:02 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 1 Apr 2012 20:02:06 +0000 (22:02 +0200)
commitbc27a100fc05cea72c47d8ae446454d347d0a0ff
tree0d550422eb6d869c611e4766e878ced107eae175
parentce29c140ed90fe0e19ed1b68ca8f7cf27aa03e8e
Fix unit tests for sql: cache media_id.

Attributes of SQLAlchemy objects get "lost". So "cache"
them locally in the code.
This is really the simple explanation for some scarry
sqlalchemy details.
mediagoblin/tests/test_submission.py