mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Add test for os module
This commit is contained in:
parent
57a3e9450a
commit
2e1c79ed2a
1 changed files with 10 additions and 0 deletions
10
certbot/tests/compat/os_test.py
Normal file
10
certbot/tests/compat/os_test.py
Normal 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))
|
||||
Loading…
Reference in a new issue