Skip to content

Commit

Permalink
added a test for #11
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Jan 3, 2017
1 parent 9552513 commit 2d71935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions konfig/tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf8
# ***** BEGIN LICENSE BLOCK *****
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -268,3 +269,8 @@ def test_as_args(self):
wanted.sort()

self.assertEqual(wanted, args)

def test_utf8(self):
utf8 = os.path.join(os.path.dirname(__file__), 'utf8.ini')
config = Config(utf8)
self.assertEqual(config.get('ok', 'yeah'), u'é')
3 changes: 3 additions & 0 deletions konfig/tests/utf8.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# comments with é
[ok]
yeah = é

0 comments on commit 2d71935

Please sign in to comment.