mozilla/gameon — pull request #50 by toolness (2012-11-29 20:01:51+00:00)
Title: Added tests for submissions.models.Entry:get_entry_feature(). some fail.

I wasn't sure about the behavior of `get_entry_feature()` so I wrote some tests to validate some assumptions. Currently the results are:

```
.F..F
======================================================================
FAIL: test_is_none_when_video_url_is_not_allowed_2 (gameon.submissions.test_models.EntryFeatureVideoUrlTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/atul/Documents/mozilla/gameon/gameon/submissions/test_models.py", line 31, in test_is_none_when_video_url_is_not_allowed_2
self.assertIsEmpty(video_url="http://mysite.org/youtube")
File "/Users/atul/Documents/mozilla/gameon/gameon/submissions/test_models.py", line 15, in assertIsEmpty
(self._repr(m), repr(html)))
AssertionError: Expected Entry(video_url='http://mysite.org/youtube').get_entry_feature() to return None, but got 'https://mysite.org/youtube'

======================================================================
FAIL: test_is_oembed_when_video_url_is_youtube_shorturl (gameon.submissions.test_models.EntryFeatureVideoUrlTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/atul/Documents/mozilla/gameon/gameon/submissions/test_models.py", line 34, in test_is_oembed_when_video_url_is_youtube_shorturl
self.assertIsEmbed(video_url="http://youtu.be/ITTxTCz4Ums")
File "/Users/atul/Documents/mozilla/gameon/gameon/submissions/test_models.py", line 23, in assertIsEmbed
self.fail(prefix + "None")
AssertionError: Expected Entry(video_url='http://youtu.be/ITTxTCz4Ums').get_entry_feature() to return an