def test_routes(self):
        self.assertRaises(CommandExecutionError, network.routes, 'family')

        with patch.dict(network.__grains__, {'kernel': 'A', 'os': 'B'}):
            self.assertRaises(CommandExecutionError, network.routes, 'inet')

        with patch.dict(network.__grains__, {'kernel': 'Linux'}):
            with patch.object(network, '_netstat_route_linux',
                              side_effect=['A', [{'addr_family': 'inet'}]]):
                self.assertEqual(network.routes(None), 'A')

                self.assertListEqual(network.routes('inet'),
                                     [{'addr_family': 'inet'}])
Check if the user is currently joined in the room
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/network_test.py/NetworkTestCase.test_routes--crossover with--dataset/ETHPy150Open matrix-org/synapse/synapse/api/auth.py/Auth.check_joined_room