mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-26 18:35:57 +00:00
e7b1302768
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
25 lines
665 B
Python
25 lines
665 B
Python
import subprocess
|
|
import unittest
|
|
|
|
|
|
class TestGeneral(unittest.TestCase):
|
|
|
|
def test_ConfigParser_regressions(self):
|
|
"""
|
|
Make sure ConfigParser is always called with the required
|
|
interpolation=None argument
|
|
"""
|
|
grep_cmd = ["grep", "-re",
|
|
"ConfigParser(.*\(^interpolation=None\).*)",
|
|
"autospec"]
|
|
try:
|
|
output = subprocess.check_output(grep_cmd).decode('utf-8')
|
|
except subprocess.CalledProcessError as e:
|
|
output = e.output.decode('utf-8')
|
|
|
|
self.assertEqual(output.strip(), "")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main(buffer=True)
|