kopia lustrzana https://github.com/Yakifo/amqtt
				
				
				
			Refactor tests
							rodzic
							
								
									fbcb7e7505
								
							
						
					
					
						commit
						6f9023ffe8
					
				|  | @ -1,17 +0,0 @@ | |||
| # Copyright (c) 2015 Nicolas JOUANIN | ||||
| # | ||||
| # See the file license.txt for copying permission. | ||||
| import unittest | ||||
| import logging | ||||
| import time | ||||
| from hbmqtt.broker import Broker | ||||
| 
 | ||||
| logging.basicConfig(level=logging.DEBUG) | ||||
| 
 | ||||
| class TestBroker(unittest.TestCase): | ||||
|     def test_start_broker(self): | ||||
|         b = Broker() | ||||
|         b.start() | ||||
|         time.sleep(100) | ||||
|         self.assertEqual(b.machine.state, 'started') | ||||
|         b.shutdown() | ||||
|  | @ -12,7 +12,7 @@ from hbmqtt.codecs import ( | |||
| ) | ||||
| 
 | ||||
| 
 | ||||
| class TestUtils(unittest.TestCase): | ||||
| class TestCodecs(unittest.TestCase): | ||||
|     def setUp(self): | ||||
|         self.loop = asyncio.new_event_loop() | ||||
| 
 | ||||
		Ładowanie…
	
		Reference in New Issue
	
	 Nicolas Jouanin
						Nicolas Jouanin