Exemplo n.º 1
0
 def test_get_method_with_default(self):
     container = PropertyContainer(name="Alice")
     assert container.get("age", 33) == 33
Exemplo n.º 2
0
 def test_get_method_with_default(self):
     container = PropertyContainer(name="Alice")
     assert container.get("age", 33) == 33
Exemplo n.º 3
0
 def test_get_method(self):
     container = PropertyContainer(name="Alice", age=33)
     assert container.get("age") == 33
Exemplo n.º 4
0
 def test_get_method(self):
     container = PropertyContainer(name="Alice", age=33)
     assert container.get("age") == 33