Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/c/o/cormoran-0.1/tests/unit/test_fields.py   cormoran(Download)
    def test_name_from_constructor_key_argument(self):
        self.field = self.FieldClass(name=u'field')
 
        assert_that(self.field.name, is_(u'field'))
 
    def test_name_from_constructor_positional_argument(self):
        self.field = self.FieldClass(u'field')
    def test_primary_from_constructor_argument(self):
        self.field = self.FieldClass(primary=True)
 
        assert_that(self.field.primary)
 
    def test_default_is_none_by_default(self):
        assert_that(self.field.default, is_(None))
 
    def test_default_from_constructor_argument(self):
        self.field = self.FieldClass(default=self.valid())
    def test_invalid_default_raises_value_error(self):
        with assert_raises(ValueError):
            self.FieldClass(default=self.invalid())
 
    def test_nullable_is_true_by_default(self):

src/c/o/cormoran-HEAD/tests/unit/test_fields.py   cormoran(Download)
    def test_name_from_constructor_key_argument(self):
        self.field = self.FieldClass(name=u'field')
 
        assert_that(self.field.name, is_(u'field'))
 
    def test_name_from_constructor_positional_argument(self):
        self.field = self.FieldClass(u'field')
    def test_primary_from_constructor_argument(self):
        self.field = self.FieldClass(primary=True)
 
        assert_that(self.field.primary)
 
    def test_default_is_none_by_default(self):
        assert_that(self.field.default, is_(None))
 
    def test_default_from_constructor_argument(self):
        self.field = self.FieldClass(default=self.valid())
    def test_invalid_default_raises_value_error(self):
        with assert_raises(ValueError):
            self.FieldClass(default=self.invalid())
 
    def test_nullable_is_true_by_default(self):