def test_write_path(self): with tempfile.NamedTemporaryFile() as f: g6.write_graph6_file(nx.null_graph(), f) f.seek(0) assert f.read() == b">>graph6<<?\n"
def test_write_path(self): with tempfile.NamedTemporaryFile() as f: g6.write_graph6_file(nx.null_graph(), f) f.seek(0) self.assertEqual(f.read(), b'>>graph6<<?\n')