Use networkx.testing functions for network.readwrite tests.
Merge pull request #1086 from jtorrents/fix-rw-tests

Use networkx.testing functions for network.readwrite tests.