MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_security_on_WASI

Method test_security_on_WASI

Lib/test/test_netrc.py:269–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267
268 @unittest.skipUnless(support.is_wasi, 'WASI only test')
269 def test_security_on_WASI(self):
270 self.assertFalse(netrc._can_security_check())
271 self.assertEqual(netrc._getpwuid(0), 'uid 0')
272 self.assertEqual(netrc._getpwuid(123456), 'uid 123456')
273
274 @unittest.skipUnless(os.name == 'posix', 'POSIX only test')
275 @unittest.skipUnless(hasattr(os, 'getuid'), "os.getuid is required")

Callers

nothing calls this directly

Calls 2

assertFalseMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected