Skip to content

Commit

Permalink
Replace whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Bartley committed Jan 12, 2022
1 parent f59ccf4 commit 9e0e238
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

class TestOntologyToModule(unittest.TestCase):

def setUp(self):
SBOLFactory.clear()

def tearDown(self):
SBOLFactory.clear()

def test_ontology_to_module(self):
SBOLFactory('uml',
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'test_files/test-modules.ttl'),
Expand All @@ -38,9 +32,9 @@ def test_figure_generation(self):
figure_maker.generate(tmp)
dot_source_actual = ''
with open(os.path.join(tmp, 'Activity_abstraction_hierarchy')) as dot_file:
dot_source_actual = dot_file.read()
dot_source_actual = dot_file.read().replace(' ', '')
with open(os.path.join(path, 'Activity_abstraction_hierarchy.dot')) as dot_file:
dot_source_expected = dot_file.read()
dot_source_expected = dot_file.read().replace(' ', '')
self.assertEqual(dot_source_actual, dot_source_expected)

def test_figure_generation2(self):
Expand All @@ -54,9 +48,9 @@ def test_figure_generation2(self):
figure_maker.generate(tmp)
dot_source_actual = ''
with open(os.path.join(tmp, 'Base_abstraction_hierarchy')) as dot_file:
dot_source_actual = dot_file.read()
dot_source_actual = dot_file.read().replace(' ', '')
with open(os.path.join(path, 'Base_abstraction_hierarchy.dot')) as dot_file:
dot_source_expected = dot_file.read()
dot_source_expected = dot_file.read().replace(' ', '')
self.assertEqual(dot_source_actual, dot_source_expected)


Expand Down

0 comments on commit 9e0e238

Please sign in to comment.