MCPcopy Create free account
hub / github.com/vispy/vispy / test_TextExpression

Function test_TextExpression

vispy/visuals/shaders/tests/test_function.py:124–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123
124def test_TextExpression():
125 exp = TextExpression('foo bar')
126 assert_equal('foo bar', exp.expression(None))
127 assert_equal(None, exp.definition(None, ('120', '')))
128 assert_raises(TypeError, TextExpression, 4)
129
130
131def test_FunctionCall():

Callers

nothing calls this directly

Calls 5

expressionMethod · 0.95
TextExpressionClass · 0.90
assert_equalFunction · 0.90
assert_raisesFunction · 0.90
definitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…