tests.models.test_models

Tests for various models

Classes

class tests.models.test_models.TestBag(methodName='runTest')

Bases: BagBaseCase, TestCase

Tests for the bag model

SAVE_NEW_DATA: bool = True

This test should use the bag model reference data instead of creating its own

model: BagModel
classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None

test_a_g()
test_a_g_all()
test_alpha_n_min()
test_auto_potential()
test_g()
test_g_a()
test_g_b()
test_g_s()
test_wn_full()
class tests.models.test_models.TestConstCS(methodName='runTest')

Bases: ModelBaseCase, TestCase

Tests for the constant \(c_s\) model

SAVE_NEW_DATA: bool = True
model: ConstCSModel
classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None

test_wn_full()
class tests.models.test_models.TestConstCSLikeBag(methodName='runTest')

Bases: BagBaseCase, TestCase

Tests for the constant sound speed model with css2=csb2=1/3

model: ConstCSModel
classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None

test_constants()
test_critical_temp()
test_wn_full()
class tests.models.test_models.TestConstCSThermo(methodName='runTest')

Bases: ModelBaseCase, TestCase

Tests for the ThermoModel-based constant \(c_s\) model

SAVE_NEW_DATA: bool = False
model: FullModel
classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None

test_cs2_full()
class tests.models.test_models.TestConstCSThermoLikeBag(methodName='runTest')

Bases: BagBaseCase, TestCase

Tests for the ThermoModel-based constant sound speed model with css2=csb2=1/3

model: FullModel
classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None

test_constants()
test_cs2_full()
class tests.models.test_models.TestSM(methodName='runTest')

Bases: ModelBaseCase, TestCase

Tests for the Standard Model-based FullModel

classmethod setUpClass(*args, **kwargs)

Hook method for setting up class fixture before running tests in the class.

Return type:

None