def test_get_switches_not_stacked(self): ssh = MockSSH([ ( "show virtual-chassis", JUNIPER_NOT_STACKED_SAMPLE, ), ( "show version", JUNIPER_SHOW_VERSION_SAMPLE, ), ]) self.assertEqual( _get_switches(ssh), ( False, 'aaaa.bbbb.dddd', [ { 'model': 'ex4500-40f', 'role': 'Master*', 'serial_number': 'GX1122334403', }, ], ), )