Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(32)  |  Call(30)  |  Derive(0)  |  Import(2)

src/s/i/sickbeard_mp4_automator-HEAD/babelfish/tests.py   sickbeard_mp4_automator(Download)
from unittest import TestCase, TestSuite, TestLoader, TextTestRunner
from pkg_resources import resource_stream  # @UnresolvedImport
from babelfish import (LANGUAGES, Language, Country, Script, language_converters, country_converters,
    LanguageReverseConverter, LanguageConvertError, LanguageReverseError, CountryReverseError)
 
    def test_wrong_script(self):
        self.assertRaises(ValueError, lambda: Script('Azer'))
 
    def test_eq(self):
        self.assertEqual(Script('Latn'), Script('Latn'))
 
    def test_ne(self):
        self.assertNotEqual(Script('Cyrl'), Script('Latn'))

src/b/a/babelfish-0.5.1/babelfish/tests.py   babelfish(Download)
from unittest import TestCase, TestSuite, TestLoader, TextTestRunner
from pkg_resources import resource_stream  # @UnresolvedImport
from babelfish import (LANGUAGES, Language, Country, Script, language_converters, country_converters,
    LanguageReverseConverter, LanguageConvertError, LanguageReverseError, CountryReverseError)
 
    def test_wrong_script(self):
        self.assertRaises(ValueError, lambda: Script('Azer'))
 
    def test_eq(self):
        self.assertEqual(Script('Latn'), Script('Latn'))
 
    def test_ne(self):
        self.assertNotEqual(Script('Cyrl'), Script('Latn'))