"""Unit tests for cat2cohort."""

import unittest
from mw_util import str2cat


class TestMWutil(unittest.TestCase):

    """Test methods from mw_util."""

    pass

@@ -157,9 +157,254 @@
     
-pass
+def test_str2cat(self):%0A        %22%22%22Test str2cat.%22%22%22%0A        values = %5B%0A            ('A', 'Category:A'),%0A            ('Category:B', 'Category:B'),%0A        %5D%0A        for value, expected in values:%0A            self.assertEqual(str2cat(value), expected)
 %0A

Add unit test for str2cat method.