def test_get_file_path(self): """ Test that a dotted path is properly converted to a file address. """ path = corpus.get_file_path('chatterbot.corpus.english') self.assertIn(os.path.join('chatterbot_corpus', 'data', 'english'), path)
def test_get_file_path(self): """ Test that a dotted path is properly converted to a file address. """ path = corpus.get_file_path('chatterbot.corpus.english') self.assertIn( os.path.join('chatterbot_corpus', 'data', 'english'), path )