'Test the Stanford Word Segmenter for Arabic (default config)'

def test_stanford_segmenter_arabic(self):

    try:
        seg = StanfordSegmenter()
        seg.default_config(u'ar')
        sent = u'\u064a\u0628\u062d\u062b    \u0639\u0644\u0645    \u0627\u0644\u062d\u0627\u0633\u0648\u0628    \u0627\u0633\u062a\u062e\u062f\u0627\u0645    \u0627\u0644\u062d\u0648\u0633\u0628\u0629    \u0628\u062c\u0645\u064a\u0639    \u0627\u0634\u0643\u0627\u0644\u0647\u0627    \u0644\u062d\u0644    \u0627\u0644\u0645\u0634\u0643\u0644\u0627\u062a'
        segmented_sent = seg.segment(sent.split())
        assert (segmented_sent.split() == [u'\u064a\u0628\u062d\u062b', u'\u0639\u0644\u0645', u'\u0627\u0644\u062d\u0627\u0633\u0648\u0628', u'\u0627\u0633\u062a\u062e\u062f\u0627\u0645', u'\u0627\u0644\u062d\u0648\u0633\u0628\u0629', u'\u0628', u'\u062c\u0645\u064a\u0639', u'\u0627\u0634\u0643\u0627\u0644', u'\u0647\u0627', u'\u0644', u'\u062d\u0644', u'\u0627\u0644\u0645\u0634\u0643\u0644\u0627\u062a'])
    except LookupError as e:
        raise SkipTest(str(e))
