Skip to content

Commit

Permalink
detect unknown filetype raises an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
emillon committed Dec 19, 2014
1 parent 86a9458 commit 3215e47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ def test_upload_image(self):
r = self.client.get(url_for('bp.home'))
self.assertIn('glyphicon-picture', r.data)

def test_detect_unknown(self):
self.assertRaises(AssertionError, Document.detect_filetype, 'x.txt')

class AudioAnnotationTestCase(RankoTestCase):
def test_create_audio_annotation(self):
self._login('a', 'a', signup=True)
Expand Down

0 comments on commit 3215e47

Please sign in to comment.