Skip to content

Commit

Permalink
Fixed test that wasn't covering final line.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgalanakis committed Jun 12, 2014
1 parent 539942c commit 804475a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def test_raises_on_access(self):
nb()

def test_novalidbackend_msg(self):
with self.assertRaises(backends.NoValidBackend) as ex:
try:
backends.NullBackend().shortname()
self.fail('Should have raised!')
except backends.NoValidBackend as ex:
self.assertEqual(ex.args, (backends.NO_VALID_BACKEND_MSG,))

0 comments on commit 804475a

Please sign in to comment.