Exemple #1
0
 def test_uppercase_pos_in_parentheses_empty_string(self):
     """Test uppercase_pos_in_parentheses with empty string."""
     actual_output = Mp.uppercase_pos_in_parentheses('')
     desired_output = ''
     self.assertEqual(actual_output, desired_output)
Exemple #2
0
    def test_map1(self):
        pos = 'dem.pxl'
        actual = Mp.map(pos)
        expected = 'PRODEM'

        self.assertEqual(actual, expected)
Exemple #3
0
 def test_uppercase_pos_in_parentheses_one_parenth_pair(self):
     """Test uppercase_pos_in_parentheses with one pair."""
     pos = 'na eˈp~o~(h)'
     actual_output = Mp.uppercase_pos_in_parentheses(pos)
     desired_output = 'na eˈp~o~(H)'
     self.assertEqual(actual_output, desired_output)
Exemple #4
0
    def test_map3(self):
        pos = 'dem.pxl'
        actual = Mp.map(pos, ud=True)
        expected = 'PRON'

        self.assertEqual(actual, expected)
Exemple #5
0
    def test_map2(self):
        pos = 'dem+G.dst'
        actual = Mp.map(pos)
        expected = 'PRODEM'

        self.assertEqual(actual, expected)
Exemple #6
0
 def clean_pos_ud(cls, pos_ud):
     return CreePOSMapper.map(pos_ud, ud=True)
Exemple #7
0
 def clean_pos(cls, pos):
     return CreePOSMapper.map(pos)