File: test_rtrip.py

package info (click to toggle)
python-astor 0.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 304 kB
  • sloc: python: 2,348; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
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
"""
Part of the astor library for Python AST manipulation

License: 3-clause BSD

Copyright (c) 2017 Patrick Maupin
"""

import os

try:
    import unittest2 as unittest
except ImportError:
    import unittest

import astor.rtrip


class RtripTestCase(unittest.TestCase):

    def test_convert_stdlib(self):
        srcdir = os.path.dirname(os.__file__)
        result = astor.rtrip.convert(srcdir)
        self.assertEqual(result, [])


if __name__ == '__main__':
    unittest.main()