Skip to content

Commit

Permalink
Improved tests. The getattr(current_lang) test doesn't work anymore s…
Browse files Browse the repository at this point in the history
…ince current_lang is now a property function.
  • Loading branch information
felixfontein committed Sep 11, 2015
1 parent 5de9795 commit dafa77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_locale.py
Expand Up @@ -214,8 +214,8 @@ def test_services_ensure_initialization(self):
def test_services_reject_dumb_wrong_call(self):
lang_11, loc_11 = LocaleSupportInTesting.langlocales['default']
nikola.utils.LocaleBorg.reset()
self.assertRaises(Exception, nikola.utils.LocaleBorg)
self.assertRaises(Exception, nikola.utils.LocaleBorg.set_locale, lang_11)
self.assertRaises(Exception, getattr, nikola.utils.LocaleBorg, 'current_lang')

def test_set_locale_raises_on_invalid_lang(self):
lang_11, loc_11 = LocaleSupportInTesting.langlocales['default']
Expand Down

0 comments on commit dafa77f

Please sign in to comment.