Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sbol2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .interaction import Interaction
from .location import Location, Range, Cut, GenericLocation
from .measurement import Measurement
from .model import Model
from .module import Module
from .moduledefinition import ModuleDefinition
from .object import SBOLObject
Expand Down
18 changes: 18 additions & 0 deletions test/test_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Unit tests for Model."""

import unittest

import sbol2


class TestModel(unittest.TestCase):
"""Unit tests for Model."""

def test_model_exported(self):
"""Test that the Model class is exported from sbol2."""
# https://github.com/SynBioDex/pySBOL2/issues/448
self.assertIn("Model", dir(sbol2), "Model is not exported from sbol2.")


if __name__ == "__main__":
unittest.main()