def test_set_upper_bounds():
    """Test setting the upper_bounds property."""
    x = ContinuousDesign()
    for items in [[0, 1], (0, 1)]:
        x.upper_bounds = items
        assert_equal(x.upper_bounds, items)
def test_set_upper_bounds_fails_if_scalar():
    """Test that the upper_bounds property fails with scalar."""
    x = ContinuousDesign()
    pt = 42
    x.upper_bounds = pt
def setup_module():
    """Fixture called before any tests are performed."""
    print("\n*** " + __name__)
    global c
    c = ContinuousDesign()
def test_set_initial_point_fails_if_scalar():
    """Test that the initial_point property fails with scalar."""
    x = ContinuousDesign()
    pt = 42
    x.initial_point = pt
def test_set_initial_point():
    """Test setting the initial_point property."""
    x = ContinuousDesign()
    for items in [[0, 1], (0, 1)]:
        x.initial_point = items
        assert_equal(x.initial_point, items)
def test_instantiate():
    """Test whether ContinuousDesign instantiates."""
    x = ContinuousDesign()
def test_str_length_with_options():
    """Test the length of __str__ with optional props set."""
    x = ContinuousDesign(lower_bounds=(-10, -10), upper_bounds=(10, 10))
    s = str(x)
    n_lines = len(s.splitlines())
    assert_equal(n_lines, 6)