mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-10-31 01:57:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| 
 | |
| import pytest
 | |
| from gnpy.core.utils import db2lin
 | |
| 
 | |
| def test_db2lin():
 | |
|     assert pytest.approx(10.0) == db2lin(10.0)
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     from logging import getLogger, basicConfig, INFO
 | |
|     logger = getLogger(__name__)
 | |
|     basicConfig(level=INFO)
 | |
| 
 | |
|     logger.info(f'Running {test}')
 | |
|     test_db2lin()
 | 
