MCPcopy Create free account
hub / github.com/arvidn/libtorrent / test_error_code

Method test_error_code

bindings/python/test.py:1127–1139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1125class test_error_code(unittest.TestCase):
1126
1127 def test_error_code(self):
1128
1129 a = lt.error_code()
1130 a = lt.error_code(10, lt.libtorrent_category())
1131 self.assertEqual(a.category().name(), 'libtorrent')
1132
1133 self.assertEqual(lt.libtorrent_category().name(), 'libtorrent')
1134 self.assertEqual(lt.upnp_category().name(), 'upnp')
1135 self.assertEqual(lt.http_category().name(), 'http')
1136 self.assertEqual(lt.socks_category().name(), 'socks')
1137 self.assertEqual(lt.bdecode_category().name(), 'bdecode')
1138 self.assertEqual(lt.generic_category().name(), 'generic')
1139 self.assertEqual(lt.system_category().name(), 'system')
1140
1141
1142class test_peer_info(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

categoryMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected