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