Fixed the test for
from __future__ import absolute_import
import sys
sys.path.insert(0,".")
-import unittest
-import neuroml
-import neuroml.writers as writers
-import PyOpenWorm
-from PyOpenWorm import *
-import networkx
-import rdflib
-import rdflib as R
-import pint as Q
-import os
-import subprocess as SP
-import subprocess
-import tempfile
-import doctest
+from PyOpenWorm import Worm, connect, disconnect, config
-from glob import glob
-
-from .GraphDBInit import *
from .DataTestTemplate import _DataTest
class MiscTest(_DataTest):
"""Miscellaneous tests that have cropped up"""
- @unittest.expectedFailure
+
+ def setUp(self):
+ connect(configFile='tests/data_integrity_test.conf')
+ self.g = config("rdf.graph")
+
+ def tearDown(self):
+ disconnect()
+
def test_generators_do_not_reset(self):
"""
This is for issue #175. For some reason,
@@ -35,7 +26,7 @@ class MiscTest(_DataTest):
"""
net = Worm().neuron_network()
- neurons = net.neuron_names()
+ neurons = net.neurons()
check1 = len(list(neurons))
check2 = len(list(neurons))
self.assertEqual(check1, check2)
