Exemplo n.º 1
0
 def test_complex(self):
     obj = base.build(
         TestObject,
         two=2,
         three=declarations.LazyAttribute(lambda o: o.two + 1))
     self.assertEqual(obj.one, None)
     self.assertEqual(obj.two, 2)
     self.assertEqual(obj.three, 3)
     self.assertEqual(obj.four, None)
Exemplo n.º 2
0
 def test_complex(self):
     obj = base.build(TestObject, two=2, three=declarations.LazyAttribute(lambda o: o.two + 1))
     self.assertEqual(obj.one, None)
     self.assertEqual(obj.two, 2)
     self.assertEqual(obj.three, 3)
     self.assertEqual(obj.four, None)
Exemplo n.º 3
0
 def test_build(self):
     obj = base.build(TestObject, two=2)
     self.assertEqual(obj.one, None)
     self.assertEqual(obj.two, 2)
     self.assertEqual(obj.three, None)
     self.assertEqual(obj.four, None)
Exemplo n.º 4
0
 def test_build(self):
     obj = base.build(TestObject, two=2)
     self.assertEqual(obj.one, None)
     self.assertEqual(obj.two, 2)
     self.assertEqual(obj.three, None)
     self.assertEqual(obj.four, None)