예제 #1
0
 def test_clean_proper_names_gloss_words_empty_string(self):
     """Test clean_proper_names_gloss_words with an empty string."""
     gloss_word = ''
     actual_output = Mp.clean_proper_names_gloss_words(gloss_word)
     desired_output = ''
     self.assertEqual(actual_output, desired_output)
예제 #2
0
 def test_clean_proper_names_gloss_words_name(self):
     """Test clean_proper_names_gloss_words with a name."""
     gloss_word = 'n^Name'
     actual_output = Mp.clean_proper_names_gloss_words(gloss_word)
     desired_output = 'a_name'
     self.assertEqual(actual_output, desired_output)
예제 #3
0
 def test_clean_proper_names_gloss_words_no_proper_name(self):
     """Test clean_proper_names_gloss_words with not a proper name."""
     gloss_word = 'sm1s-t^p_v^be_sick-m^x'
     actual_output = Mp.clean_proper_names_gloss_words(gloss_word)
     desired_output = 'sm1s-t^p_v^be_sick-m^x'
     self.assertEqual(actual_output, desired_output)