mirror of
				https://github.com/JoelBender/bacpypes
				synced 2025-10-27 00:57:47 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			522 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			522 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/python
 | |
| # -*- coding: utf-8 -*-
 | |
| 
 | |
| """
 | |
| test_something
 | |
| --------------
 | |
| """
 | |
| 
 | |
| import unittest
 | |
| 
 | |
| from bacpypes.debugging import bacpypes_debugging, ModuleLogger
 | |
| 
 | |
| # some debugging
 | |
| _debug = 0
 | |
| _log = ModuleLogger(globals())
 | |
| 
 | |
| 
 | |
| @bacpypes_debugging
 | |
| class TestSomething(unittest.TestCase):
 | |
| 
 | |
|     def setUp(self):
 | |
|         if _debug: TestSomething._debug("setUp")
 | |
| 
 | |
|     def test_something(self):
 | |
|         if _debug: TestSomething._debug("test_something")
 | |
| 
 | |
|     def tearDown(self):
 | |
|         if _debug: TestSomething._debug("tearDown")
 | 
