Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate sites support #410

merged 10 commits into from May 10, 2019

Merge branch 'master' into duplicate_sites

  • Loading branch information...
alubbock committed Apr 25, 2019
commit 9cc3cba4c5f2b082e5fb1038a3ce5f13790f8d68
@@ -423,3 +423,46 @@ def test_duplicate_sites():
def test_duplicate_site_single_site():

def test_invalid_rule():
assert_raises(ExpressionError, Rule, 'r1', None >> A(), 1.0)
assert len(model.rules) == 0

Parameter('kf', 1.0)
assert_raises(Exception, Rule, 'r1', 'invalid_rule_expr', kf)
assert len(model.rules) == 0

def test_invalid_expression():
assert_raises(ValueError, Expression, 'e1', 'invalid_expr')
assert len(model.expressions) == 0

def test_invalid_monomer_name():
assert_raises(ValueError, Monomer, 'a', 123)
assert len(model.monomers) == 0

def test_invalid_parameter():
assert_raises(ValueError, Parameter, 'a', 'invalid_value')
assert len(model.parameters) == 0

def test_invalid_compartment():
assert_raises(Exception, Compartment, 'c1', 'invalid_parent')
assert len(model.compartments) == 0

def test_invalid_observable():
Observable, 'o1', 'invalid_pattern')
assert len(model.observables) == 0

You are viewing a condensed version of this merge commit. You can view the full changes here.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.