Skip to content
Permalink
Browse files

add unit test for observables with no species

  • Loading branch information...
FFroehlich committed Feb 11, 2019
1 parent e80b2fa commit 116a64ff98c831bb47f2d9a3c9ffdbdff3123880
Showing with 8 additions and 0 deletions.
  1. +8 −0 pysb/tests/test_core.py
@@ -147,6 +147,14 @@ def test_observable_constructor_with_monomer():
A = Monomer('A', _export=False)
o = Observable('o', A, _export=False)

@with_model
def test_expand_obs_no_coeffs():
A = Monomer('A')
o = Observable('A_obs', A())
# Test that expand_obs works with observable when no coefficients or
# species are present
o.expand_obs()

@with_model
def test_compartment_initial_error():
Monomer('A', ['s'])

0 comments on commit 116a64f

Please sign in to comment.
You can’t perform that action at this time.