|  | @@ -27,3 +27,22 @@ def test__dot_recurse_dir(capsys):
 | 
	
		
			
				|  |  |      out, err = capsys.readouterr()
 | 
	
		
			
				|  |  |      assert not err
 | 
	
		
			
				|  |  |      assert out == pathlib.Path("persons").joinpath("digraph.dot").read_text()
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +@patch("sys.argv", ["", "--comment", "some text", "persons/erika-mustermann.yml"])
 | 
	
		
			
				|  |  | +def test__dot_comment(capsys):
 | 
	
		
			
				|  |  | +    _dot()
 | 
	
		
			
				|  |  | +    out, err = capsys.readouterr()
 | 
	
		
			
				|  |  | +    assert not err
 | 
	
		
			
				|  |  | +    expected_out = r"""digraph yamily {
 | 
	
		
			
				|  |  | +	subgraph "cluster_erika-mustermann" {
 | 
	
		
			
				|  |  | +		rank=same style=invisible
 | 
	
		
			
				|  |  | +		"erika-mustermann" [label="Erika Mustermann\n*1957-08-12" shape=box]
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +	subgraph cluster_comment {
 | 
	
		
			
				|  |  | +		style=invisible
 | 
	
		
			
				|  |  | +		comment [label="some text" shape=none]
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +"""
 | 
	
		
			
				|  |  | +    assert out == expected_out
 |