13 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from parser import get_iperf3_stats
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class TestSuite():
							 | 
						||
| 
								 | 
							
								    def test_conn_speed(self, client):
							 | 
						||
| 
								 | 
							
								        assert client != False
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        s = get_iperf3_stats(client)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        assert len(s) == 10
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        for i in s:
							 | 
						||
| 
								 | 
							
								            assert i['bitrate'] >= 80_000_000 # 80+ Mbit/s
							 |