-
Notifications
You must be signed in to change notification settings - Fork 4
/
test_util_miscellaneous.py
executable file
·32 lines (28 loc) · 1.57 KB
/
test_util_miscellaneous.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Test the util.test module."""
# Copyright Permission.io, Inc. (formerly known as Algebraix Data Corporation), Copyright (c) 2022.
#
# This file is part of algebraixlib <http://github.com/AlgebraixData/algebraixlib>.
#
# algebraixlib is free software: you can redistribute it and/or modify it under the terms of version
# 3 of the GNU Lesser General Public License as published by the Free Software Foundation.
#
# algebraixlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along with algebraixlib.
# If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------------------------------------------------
import inspect
import os
import unittest
from algebraixlib.util.miscellaneous import get_full_class_name
from algebraixlib.mathobjects import Set
class TestMiscellaneous(unittest.TestCase):
def test_get_full_class_name(self):
self.assertEqual(get_full_class_name(Set()), "algebraixlib.mathobjects.set.Set")
# --------------------------------------------------------------------------------------------------
if __name__ == '__main__':
# The print is not really necessary. It helps making sure we always know what we ran in the IDE.
print('main: {file}'.format(file=os.path.basename(inspect.getfile(inspect.currentframe()))))
unittest.main()