Esempio n. 1
0
 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"
Esempio n. 2
0
 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')