""" Part of the tagit test suite. A copy of the license is provided with the project. Author: Matthias Baumgartner, 2022 """ # imports import unittest # objects to test from bsfs.utils.commons import typename ## code ## class TestCommons(unittest.TestCase): def test_typename(self): class Foo(): pass self.assertEqual(typename(Foo()), 'Foo') self.assertEqual(typename('hello'), 'str') self.assertEqual(typename(123), 'int') self.assertEqual(typename(None), 'NoneType') ## main ## if __name__ == '__main__': unittest.main() ## EOF ##