Adding test of Cell __str__
@@ -4,20 +4,8 @@ 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
+from PyOpenWorm import Neuron, Muscle, Cell, DataUser
import os
-import subprocess as SP
-import subprocess
-import tempfile
-import doctest
-
-from glob import glob
-
-from GraphDBInit import *
from DataTestTemplate import _DataTest
@@ -133,7 +121,7 @@ class CellTest(_DataTest):
f = sys.stdout
try:
sys.stdout = open(os.devnull, 'w')
- except:
+ except Exception:
sys.stdout = f
try:
@@ -158,3 +146,6 @@ class CellTest(_DataTest):
sum_cells = num_neurons + num_muscles
self.assertEqual(sum_cells, num_cells)
+
+ def test_str(self):
+ self.assertEqual('cell_name', str(Cell('cell_name')))
