Stanford-Online/class2go — pull request #1342 by jrbl (2012-11-20 17:58:45+00:00)
Title: Filetype speedups and tests (master)

* eliminate an S3 round-trip for filetype lookup
* make icon assignment a constant-time operation
* rename .file_icon() to .get_icon_type() to make its behavior more explicit
* rename .file_ext() to .get_ext()
* Adds unit test