Skip to content

Commit

Permalink
add hello world test
Browse files Browse the repository at this point in the history
  • Loading branch information
pom committed Aug 4, 2010
1 parent 490a828 commit 4635392
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.2.1
0.2.2
2 changes: 1 addition & 1 deletion doc/conf.py
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '0.2'
# The full version, including alpha/beta/rc tags.
release = '0.2.1'
release = '0.2.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,6 +1,6 @@
from setuptools import setup
setup(name='pygexf',
version='0.2.1',
version='0.2.2',
packages=['gexf'],
url='http://github.com/paulgirard/pygexf',
author='Paul Girard',
Expand Down
16 changes: 14 additions & 2 deletions test/test.py
@@ -1,9 +1,21 @@
#!/usr/bin/python

import gexf
from gexf import Gexf,GexfImport

# test helloworld.gexf
gexf = Gexf("Paul Girard","A hello world! file")
graph=gexf.addGraph("directed","static","a hello world graph")

graph.addNode("0","hello")
graph.addNode("1","World")
graph.addEdge("0","0","1")

output_file=open("hellowrld.gexf","w")
gexf.write(output_file)

# test GexfImport
f = open("exp.gexf")
o = open("exp_bootstrap_bootstrap.gexf", "w+")

gexf_import = gexf.GexfImport(f).gexf()
gexf_import = GexfImport(f).gexf()
gexf_import.write(o)

0 comments on commit 4635392

Please sign in to comment.