Example #1
0
 def test_setdefault_where_missing(self):
     container = PropertyContainer(name="Alice")
     assert container.setdefault("age", 44) == 44
Example #2
0
 def test_setdefault_where_missing(self):
     container = PropertyContainer(name="Alice")
     assert container.setdefault("age", 44) == 44
Example #3
0
 def test_setdefault_where_exists(self):
     container = PropertyContainer(name="Alice", age=33)
     assert container.setdefault("age", 44) == 33
Example #4
0
 def test_setdefault_where_exists(self):
     container = PropertyContainer(name="Alice", age=33)
     assert container.setdefault("age", 44) == 33