def test_property_with_none_value(): """Test None as property.""" g = Traversel() g.property(a=1, b=None) assert str(g) == "g.property('a', 1)"
def test_add_with_typed_properties(): """Test add with typed property.""" g = Traversel('g') g.property(foo=1, bar="1", jazz=1.1) assert str(g) == "g.property('foo', 1).property('bar', '1').property('jazz', 1.1)"