Did I find the right examples for you? yes no

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

src/a/s/astm-0.5.0/astm/tests/test_mapping.py   astm(Download)
    def test_get_value(self):
        obj = self.Dummy()
        self.assertEqual(obj.field, None)
        self.assertEqual(obj[0], None)
 
    def test_set_value(self):
        obj = self.Dummy()
    def test_get_value(self):
        obj = self.Dummy(field=42)
        self.assertEqual(obj.field, 42)
 
    def test_set_value(self):
        obj = self.Dummy()
    def test_set_string_value(self):
        obj = self.Dummy()
        obj.field = '42'
        self.assertEqual(obj.field, 42)
        self.assertRaises(TypeError, setattr, obj, 'field', 'foo')