()
| 105 | |
| 106 | |
| 107 | def test_text(): |
| 108 | fig, ax = plt.subplots() |
| 109 | ax.set_xlabel("my x label") |
| 110 | ax.set_ylabel("my y label") |
| 111 | ax.set_title("my title") |
| 112 | ax.text(0.5, 0.5, "my text") |
| 113 | |
| 114 | _assert_output_equal( |
| 115 | fake_renderer_output(fig, FakeRenderer), |
| 116 | """ |
| 117 | opening figure |
| 118 | opening axes |
| 119 | draw text 'my text' None |
| 120 | draw text 'my x label' xlabel |
| 121 | draw text 'my y label' ylabel |
| 122 | draw text 'my title' title |
| 123 | closing axes |
| 124 | closing figure |
| 125 | """, |
| 126 | ) |
| 127 | |
| 128 | |
| 129 | def test_path(): |
nothing calls this directly
no test coverage detected