ogn-python/tests/model/all_classes.py

21 wiersze
441 B
Python
Czysty Zwykły widok Historia

2017-10-03 10:59:45 +00:00
import unittest
2017-12-13 13:22:31 +00:00
import inspect
2017-10-03 10:59:45 +00:00
2017-12-13 13:22:31 +00:00
import ogn.model
2017-10-03 10:59:45 +00:00
class TestStringMethods(unittest.TestCase):
def test_string(self):
2017-12-13 13:22:31 +00:00
try:
for name, obj in inspect.getmembers(ogn.model):
print("Testing: {}".format(name))
if inspect.isclass(obj):
print(obj())
except AttributeError as e:
raise AssertionError(e)
2017-10-03 10:59:45 +00:00
2017-10-03 10:59:45 +00:00
if __name__ == '__main__':
unittest.main()