Changed file encoding for setup.py to UTF-8.
[philipp/winterrodeln/wrpylib.git] / tests / test_mwapi.py
1 #!/usr/bin/python3.4
2 # $Id$
3 # $HeadURL$
4 import unittest
5 from wrpylib.mwapi import dbkey_to_title
6
7
8 class TestMwApi(unittest.TestCase):
9     def test_dbkey_to_title(self):
10         self.assertEqual(dbkey_to_title('My_Title'), 'My Title')
11         self.assertEqual(dbkey_to_title('My Title'), 'My Title') # should not happen
12         self.assertEqual(dbkey_to_title('My_nice_Title'), 'My nice Title')