Mercurial > p > roundup > code
comparison test/test_anypy.py @ 7824:ebb03b8cee4d
test: invoke test function in cmp_.py.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 24 Mar 2024 10:50:08 -0400 |
| parents | c65e0a725c88 |
| children |
comparison
equal
deleted
inserted
replaced
| 7823:5ac9253d2a5f | 7824:ebb03b8cee4d |
|---|---|
| 1 """Random tests for anypy modules""" | 1 """Random tests for anypy modules""" |
| 2 | 2 |
| 3 | 3 |
| 4 import unittest | 4 import unittest |
| 5 from roundup.anypy.strings import repr_export, eval_import | 5 from roundup.anypy.strings import repr_export, eval_import |
| 6 from roundup.anypy.cmp_ import _test | |
| 6 | 7 |
| 7 import sys | 8 import sys |
| 8 _py3 = sys.version_info[0] > 2 | 9 _py3 = sys.version_info[0] > 2 |
| 9 | 10 |
| 10 class StringsTest(unittest.TestCase): | 11 class StringsTest(unittest.TestCase): |
| 56 | 57 |
| 57 # python2 or python3 export with id as string | 58 # python2 or python3 export with id as string |
| 58 val = repr_export(('issue', '2345', 'status')) | 59 val = repr_export(('issue', '2345', 'status')) |
| 59 self.assertEqual(val, "('issue', '2345', 'status')") | 60 self.assertEqual(val, "('issue', '2345', 'status')") |
| 60 | 61 |
| 62 class MiscTest(unittest.TestCase): | |
| 63 | |
| 64 def test_cmp_(self): | |
| 65 _test() |
