()
| 231 | assert out.exists() |
| 232 | |
| 233 | def test_to_graphml_valid_xml(): |
| 234 | G = make_graph() |
| 235 | communities = cluster(G) |
| 236 | with tempfile.TemporaryDirectory() as tmp: |
| 237 | out = Path(tmp) / "graph.graphml" |
| 238 | to_graphml(G, communities, str(out)) |
| 239 | content = out.read_text() |
| 240 | assert "<graphml" in content |
| 241 | assert "<node" in content |
| 242 | |
| 243 | def test_to_graphml_has_community_attribute(): |
| 244 | G = make_graph() |
nothing calls this directly
no test coverage detected