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