예제 #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_dpdT(self):
     util.parse_derivative_string('dpdT', self.quantity_dict)
예제 #4
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_dTdp(self):
     var1, var2 = util.parse_derivative_string('dTdp', self.quantity_dict)
     assert var1 == 'T'
     assert var2 == 'p'
예제 #5
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_invalid_variable(self):
     util.parse_derivative_string('dpdz', self.quantity_dict)
예제 #6
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_invalid_format(self):
     util.parse_derivative_string('ooglymoogly', self.quantity_dict)
예제 #7
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_dpdT(self):
     util.parse_derivative_string('dpdT', self.quantity_dict)
예제 #8
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_dTdp(self):
     var1, var2 = util.parse_derivative_string('dTdp', self.quantity_dict)
     assert var1 == 'T'
     assert var2 == 'p'
예제 #9
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_invalid_variable(self):
     util.parse_derivative_string('dpdz', self.quantity_dict)
예제 #10
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_invalid_format(self):
     util.parse_derivative_string('ooglymoogly', self.quantity_dict)