Ejemplo n.º 1
0
 def test_find_available_interfaces(self):
     result = list(find_available_interfaces())
     self.assertGreaterEqual(len(result), 0)
     for entry in result:
         self.assertRegex(entry, r"v?can\d+")
     if TEST_INTERFACE_SOCKETCAN:
         self.assertGreaterEqual(len(result), 1)
         self.assertIn("vcan0", result)
Ejemplo n.º 2
0
 def test_find_available_interfaces(self):
     result = list(find_available_interfaces())
     self.assertGreaterEqual(len(result), 0)
     for entry in result:
         self.assertRegexpMatches(entry, r"v?can\d+")
     if IS_CI:
         self.assertGreaterEqual(len(result), 1)
         self.assertIn("vcan0", result)
 def test_find_available_interfaces(self):
     result = list(find_available_interfaces())
     self.assertGreaterEqual(len(result), 0)
     for entry in result:
         self.assertRegexpMatches(entry, r"v?can\d+")
     if IS_CI:
         self.assertGreaterEqual(len(result), 1)
         self.assertIn("vcan0", result)
Ejemplo n.º 4
0
 def _detect_available_configs():
     return [{
         'interface': 'socketcan',
         'channel': channel
     } for channel in find_available_interfaces()]
Ejemplo n.º 5
0
 def _detect_available_configs():
     return [{'interface': 'socketcan', 'channel': channel}
             for channel in find_available_interfaces()]
Ejemplo n.º 6
0
 def _detect_available_configs(
 ) -> List[can.typechecking.AutoDetectedConfig]:
     return [{
         "interface": "socketcan",
         "channel": channel
     } for channel in find_available_interfaces()]