mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			453 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			453 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import unittest
 | |
| from cs.CsApp import CsApp
 | |
| from cs.CsAddress import CsIP
 | |
| from cs.CsConfig import CsConfig
 | |
| import merge
 | |
| 
 | |
| 
 | |
| class TestCsApp(unittest.TestCase):
 | |
| 
 | |
|     def setUp(self):
 | |
|         merge.DataBag.DPATH = "."
 | |
| 
 | |
|     def test_init(self):
 | |
|         csconfig = CsConfig()
 | |
|         csconfig.cmdline()
 | |
|         csip = CsIP("eth0", csconfig)
 | |
|         csapp = CsApp(csip)
 | |
|         self.assertTrue(csapp is not None)
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     unittest.main()
 |