예제 #1
0
파일: tests.py 프로젝트: jjhelmus/atmos
def test_quantities_dict_complete():
    names = [item['output'] for item in _get_module_methods(equations)]
    for name in names:
        if name not in equations.quantities.keys():
            try:
                util.parse_derivative_string(name)
            except ValueError:
                raise AssertionError('{} not in quantities dict'.format(name))
예제 #2
0
파일: tests.py 프로젝트: jjhelmus/atmos
def test_quantities_dict_complete():
    names = [item['output'] for item in _get_module_methods(equations)]
    for name in names:
        if name not in equations.quantities.keys():
            try:
                util.parse_derivative_string(name)
            except ValueError:
                raise AssertionError('{} not in quantities dict'.format(name))
예제 #3
0
파일: tests.py 프로젝트: jjhelmus/atmos
def test_get_module_methods_nonempty():
    result = _get_module_methods(equations)
    assert len(result) > 0
예제 #4
0
파일: tests.py 프로젝트: jjhelmus/atmos
def test_get_module_methods_nonempty():
    result = _get_module_methods(equations)
    assert len(result) > 0