Traktor/myenv/Lib/site-packages/sympy/utilities/tests/test_source.py

12 lines
289 B
Python
Raw Normal View History

2024-05-23 01:57:24 +02:00
from sympy.utilities.source import get_mod_func, get_class
def test_get_mod_func():
assert get_mod_func(
'sympy.core.basic.Basic') == ('sympy.core.basic', 'Basic')
def test_get_class():
_basic = get_class('sympy.core.basic.Basic')
assert _basic.__name__ == 'Basic'