| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -178,6 +178,7 @@ class TestCarModel(unittest.TestCase): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      # check that openpilot and panda safety agree on the car's state | 
					 | 
					 | 
					 | 
					      # check that openpilot and panda safety agree on the car's state | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      checks['gasPressed'] += CS.gasPressed != safety.get_gas_pressed_prev() | 
					 | 
					 | 
					 | 
					      checks['gasPressed'] += CS.gasPressed != safety.get_gas_pressed_prev() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      checks['brakePressed'] += CS.brakePressed != safety.get_brake_pressed_prev() | 
					 | 
					 | 
					 | 
					      checks['brakePressed'] += CS.brakePressed != safety.get_brake_pressed_prev() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      if self.CP.pcmCruise: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        checks['controlsAllowed'] += not CS.cruiseState.enabled and safety.get_controls_allowed() | 
					 | 
					 | 
					 | 
					        checks['controlsAllowed'] += not CS.cruiseState.enabled and safety.get_controls_allowed() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    # TODO: reduce tolerance to 0 | 
					 | 
					 | 
					 | 
					    # TODO: reduce tolerance to 0 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |