Exemplo n.º 1
0
 def test_empty_3(self):
     self.dev1 = Mock(**self.empty_output)
     obj = ShowAuthenticationSessionsInterfaceDetails(device=self.dev1)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse(intf='GigabitEthernet3/0/2')
Exemplo n.º 2
0
 def test_golden_5(self):
     self.maxDiff = None
     self.dev_c3850 = Mock(**self.golden_output_4)
     obj = ShowAuthenticationSessionsInterfaceDetails(device=self.dev_c3850)
     parsed_output = obj.parse(intf='GigabitEthernet1/0/12')
     self.assertEqual(parsed_output,self.golden_parsed_output_4)
 def test_golden_7(self):
     self.dev_c3850 = Mock(**self.golden_output_6)
     obj = ShowAuthenticationSessionsInterfaceDetails(device=self.dev_c3850)
     parsed_output = obj.parse(interface='GigabitEthernet2/0/47')
     self.assertEqual(parsed_output, self.golden_parsed_output_6)