def test_apostrophe(self): self.assertEqual(separate("yīlù píng'ān"), ['yī lù', 'píng ān'])
def test_you_er_yuan(self): self.assertEqual(separate("yòu'éryuán"), ["yòu ér yuán"])
def test_ungrouped(self): with patch('chinese.transcribe.config', {'transcription': 'Pinyin'}): self.assertEqual(separate('hěn gāoxìng', grouped=False), ['hěn', 'gāo', 'xìng'])
def test_multisyllabic_words(self): with patch('chinese.transcribe.config', {'transcription': 'Pinyin'}): self.assertEqual(separate('túshūguǎn'), ['tú shū guǎn'])
def test_muliple_words(self): with patch('chinese.transcribe.config', {'transcription': 'Pinyin'}): self.assertEqual(separate('hěn gāoxìng'), ['hěn', 'gāo xìng'])
def test_tone_number(self): with patch('chinese.transcribe.config', {'transcription': 'Pinyin'}): self.assertEqual(separate('xian4zai4'), ['xian4 zai4'])
def test_tone_mark(self): with patch('chinese.transcribe.config', {'transcription': 'Pinyin'}): self.assertEqual(separate('xiànzài'), ['xiàn zài'])