0b76d976d36df600a69e7851776983de4e6e69a8,brian2/tests/test_namespaces.py,,test_errors,#,45
Before Change
def test_errors():
// No explicit namespace
namespace = create_namespace()
assert_raises(KeyError, lambda: namespace["nonexisting_variable"])
// Empty explicit namespace
namespace = create_namespace({})
After Change
assert_raises(KeyError, lambda: resolve("nonexisting_variable", group))
// Empty explicit namespace
group = SimpleGroup(namespace={}, variables={})
assert_raises(KeyError, lambda: resolve("nonexisting_variable", group))
def test_resolution():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: brian-team/brian2
Commit Name: 0b76d976d36df600a69e7851776983de4e6e69a8
Time: 2014-01-23
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_namespaces.py
Class Name:
Method Name: test_errors
Project Name: brian-team/brian2
Commit Name: 0b76d976d36df600a69e7851776983de4e6e69a8
Time: 2014-01-23
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_equations.py
Class Name:
Method Name: test_unit_checking
Project Name: brian-team/brian2
Commit Name: 0b76d976d36df600a69e7851776983de4e6e69a8
Time: 2014-01-23
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_namespaces.py
Class Name:
Method Name: test_resolution
Project Name: brian-team/brian2
Commit Name: 0b76d976d36df600a69e7851776983de4e6e69a8
Time: 2014-01-23
Author: marcel.stimberg@ens.fr
File Name: brian2/tests/test_namespaces.py
Class Name:
Method Name: test_warning