def test_set_response_statistics_string_to_tuple(): """Test that a string is converted to a tuple.""" x = ResponseFunctions() value = "x1" x.response_statistics = value assert_true(type(x.response_statistics) is tuple)
def test_set_response_statistics_fails_with_nonstring_scalar(): """Test that response_statistics fails with a non-string scalar.""" x = ResponseFunctions() value = 42 x.response_statistics = value
def test_set_response_statistics(): """Test setting the response_statistics property.""" x = ResponseFunctions() for stats in [["median"], ("median", )]: x.response_statistics = stats assert_equal(x.response_statistics, stats)
def setup_module(): """Fixture called before any tests are performed.""" print("\n*** " + __name__) global r r = ResponseFunctions()
def test_set_response_files(): """Test setting the response_files property.""" x = ResponseFunctions() for files in [["HYDROASCII.QS"], ("HYDROASCII.QS", )]: x.response_files = files assert_equal(x.response_files, files)
def test_instantiate(): """Test whether ResponsesFunctions instantiates.""" x = ResponseFunctions()