Add test for os module

This commit is contained in:
Adrien Ferrand 2019-05-15 23:24:38 +02:00
parent 57a3e9450a
commit 2e1c79ed2a

View file

@ -0,0 +1,10 @@
import unittest
from certbot.compat import os
class OsTest(unittest.TestCase):
"""Unit tests for os module."""
def test_forbidden_methods(self):
for method in ['chmod']:
self.assertRaises(RuntimeError, getattr(os, method))