File: test_readwrite.py

package info (click to toggle)
python-pygraphviz 1.3.1-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 664 kB
  • sloc: ansic: 4,970; python: 2,523; makefile: 152
file content (17 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
from nose.tools import *
import pygraphviz as pgv

def test_readwrite():
    A = pgv.AGraph(name='test graph')
    A.add_path([1,2,3,4,5,6,7,8,9,10])

#FIXME
# >>> (fd,fname)=tempfile.mkstemp()
    # A.write(fname)
    # A.read(fname)
    # assert_equal(B, AGraph(fname))
    # assert_true(B == A)
    # assert_false(B is A)
# >>> os.close(fd)
# >>> os.unlink(fname)