def test_check_fine_mesh_total_false(): """Check that if fine mesh is greater than 7, warning is not issued. """ block01 = {'it': 2, 'jt': 4, 'kt': 4} with warnings.catch_warnings(record=True) as w: partisn._check_fine_mesh_total(block01) assert(len(w) == 0)
def test_check_fine_mesh_total_true(): """Check that if fine mesh is less than 7, warning is issued. """ block01 = {'it': 2, 'jt': 4} with warnings.catch_warnings(record=True) as w: partisn._check_fine_mesh_total(block01) assert(len(w) == 1)
def test_check_fine_mesh_total_false(): """Check that if fine mesh is greater than 7, warning is not issued. """ block01 = {'it':2, 'jt':4, 'kt':4} warn_out = partisn._check_fine_mesh_total(block01) assert(warn_out == False)
def test_check_fine_mesh_total_true(): """Check that if fine mesh is less than 7, warning is issued. """ block01 = {'it':2, 'jt':4} warn_out = partisn._check_fine_mesh_total(block01) assert(warn_out == True)