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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
set() -> new empty set object
set(iterable) -> new set object

Build an unordered collection of unique elements.

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_languages(self):
        self.assertEqual(len(LANGUAGES), 7874)
 
    def test_wrong_language(self):
        self.assertRaises(ValueError, lambda: Language('zzz'))

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_languages(self):
        self.assertEqual(len(LANGUAGES), 7874)
 
    def test_wrong_language(self):
        self.assertRaises(ValueError, lambda: Language('zzz'))