Ejemplo n.º 1
0
def test_set_nested_fails_if_float():
    """Test that the nested property fails with a float."""
    m = StochasticCollocation()
    nested = 42.0
    m.nested = nested
Ejemplo n.º 2
0
def test_set_nested():
    """Test setting the nested property."""
    m = StochasticCollocation()
    nested = True
    m.nested = nested
    assert_equal(m.nested, nested)