| 
					
				 | 
			
			
				@@ -69,7 +69,11 @@ def test_should_do_markup_prefers_any_false_config_value(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 def test_should_do_markup_respects_PY_COLORS_environment_variable(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    flexmock(module.os.environ).should_receive('get').and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('PY_COLORS', None).and_return( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'True' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('NO_COLOR', None).and_return(None) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module).should_receive('to_bool').and_return(True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     assert module.should_do_markup(no_color=False, configs={}) is True 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -82,7 +86,7 @@ def test_should_do_markup_prefers_no_color_value_to_config_value(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-def test_should_do_markup_prefers_config_value_to_PY_COLORS(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+def test_should_do_markup_prefers_config_value_to_environment_variables(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module.os.environ).should_receive('get').and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module).should_receive('to_bool').and_return(True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,7 +96,7 @@ def test_should_do_markup_prefers_config_value_to_PY_COLORS(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-def test_should_do_markup_prefers_no_color_value_to_PY_COLORS(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+def test_should_do_markup_prefers_no_color_value_to_environment_variables(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module.os.environ).should_receive('get').and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module).should_receive('to_bool').and_return(True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -107,13 +111,42 @@ def test_should_do_markup_respects_interactive_console_value(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 def test_should_do_markup_prefers_PY_COLORS_to_interactive_console_value(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    flexmock(module.os.environ).should_receive('get').and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('PY_COLORS', None).and_return( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'True' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('NO_COLOR', None).and_return(None) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module).should_receive('to_bool').and_return(True) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     flexmock(module).should_receive('interactive_console').and_return(False) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     assert module.should_do_markup(no_color=False, configs={}) is True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+def test_should_do_markup_prefers_NO_COLOR_to_interactive_console_value(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('PY_COLORS', None).and_return(None) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('NO_COLOR', None).and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module).should_receive('interactive_console').and_return(False) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    assert module.should_do_markup(no_color=False, configs={}) is False 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+def test_should_do_markup_respects_NO_COLOR_environment_variable(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('NO_COLOR', None).and_return('True') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('PY_COLORS', None).and_return(None) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    assert module.should_do_markup(no_color=False, configs={}) is False 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+def test_should_do_markup_prefers_NO_COLOR_to_PY_COLORS(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('PY_COLORS', None).and_return( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'True' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    flexmock(module.os.environ).should_receive('get').with_args('NO_COLOR', None).and_return( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'SomeValue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    assert module.should_do_markup(no_color=False, configs={}) is False 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 def test_multi_stream_handler_logs_to_handler_for_log_level(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     error_handler = flexmock() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     error_handler.should_receive('emit').once() 
			 |