code
stringlengths
26
870k
docstring
stringlengths
1
65.6k
func_name
stringlengths
1
194
language
stringclasses
1 value
repo
stringlengths
8
68
path
stringlengths
5
182
url
stringlengths
46
251
license
stringclasses
4 values
def test_statinfoBitsNotImplementedInWindows(self): """ Verify that certain file stats are not available on Windows """ self.assertRaises(NotImplementedError, self.path.getInodeNumber) self.assertRaises(NotImplementedError, self.path.getDevice) self.assertRaises(NotImplementedError, self.path.getNumberOfHardLinks) self.assertRaises(NotImplementedError, self.path.getUserID) self.assertRaises(NotImplementedError, self.path.getGroupID)
Verify that certain file stats are not available on Windows
test_statinfoBitsNotImplementedInWindows
python
wistbean/learn_python3_spider
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py
https://github.com/wistbean/learn_python3_spider/blob/master/stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py
MIT
def test_statinfoBitsAreNumbers(self): """ Verify that file inode/device/nlinks/uid/gid stats are numbers in a POSIX environment """ numbers = (int, long) c = self.path.child(b'file1') for p in self.path, c: self.assertIsInstance(p.getInodeNumber(), numbers) self.assertIsInstance(p.getDevice(), numbers) self.assertIsInstance(p.getNumberOfHardLinks(), numbers) self.assertIsInstance(p.getUserID(), numbers) self.assertIsInstance(p.getGroupID(), numbers) self.assertEqual(self.path.getUserID(), c.getUserID()) self.assertEqual(self.path.getGroupID(), c.getGroupID())
Verify that file inode/device/nlinks/uid/gid stats are numbers in a POSIX environment
test_statinfoBitsAreNumbers
python
wistbean/learn_python3_spider
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py
https://github.com/wistbean/learn_python3_spider/blob/master/stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py
MIT