Adds tag unit testing
authorCaleb Forbes Davis V <caldavis@gmail.com>
Fri, 29 Jul 2011 18:56:40 +0000 (13:56 -0500)
committerCaleb Forbes Davis V <caldavis@gmail.com>
Fri, 29 Jul 2011 19:04:49 +0000 (14:04 -0500)
commit8ff4dec742d0b9f375afd9d1862a560e1be200d1
tree880b18dce27951451dd7b6eabd1a272ee87090e0
parentf99b5caeb68cb60d768f0e049388a6f4a8b68ac0
Adds tag unit testing

- overrides default tag parsing globals in test_mgoblin_app.ini
- piggybacks on existing test_submission code to check correct tag
  parsing and storage in the database
- verifies expected behavior given different delimiters, case
  sensitivities, tags that are too long, and extra whitespace
- verifies list-of-dict database storage and tag slugification
mediagoblin/tests/test_mgoblin_app.ini
mediagoblin/tests/test_submission.py [new file with mode: 0644]
mediagoblin/tests/test_submission/evil [new file with mode: 0755]
mediagoblin/tests/test_submission/evil.jpg [new file with mode: 0755]
mediagoblin/tests/test_submission/evil.png [new file with mode: 0755]
mediagoblin/tests/test_submission/good.jpg [new file with mode: 0644]
mediagoblin/tests/test_submission/good.png [new file with mode: 0644]
mediagoblin/tests/test_tags.py [new file with mode: 0644]