def test_golden(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output)
     obj = ShowInterfacesStats(device=self.device)
     parsed_output = obj.parse()
     self.assertEqual(parsed_output, self.golden_parsed_output)
 def test_show_interfaces(self):
     self.maxDiff = None
     self.device = Mock(**self.golden_output_interface)
     obj = ShowInterfacesStats(device=self.device)
     parsed_output = obj.parse(interface='GigabitEthernet0/0/0')
     self.assertEqual(parsed_output, self.golden_parsed_output_interface)
 def test_empty(self):
     self.device = Mock(**self.empty_output)
     obj = ShowInterfacesStats(device=self.device)
     with self.assertRaises(SchemaEmptyParserError):
         parsed_output = obj.parse()