コード例 #1
0
 def test_empty_output(self):
     self.dev2 = Mock(**self.empty_output)
     obj = ShowDot1xAllSummary(device = self.dev2)
     with self.assertRaises(SchemaEmptyParserError):
         parsed = obj.parse()
コード例 #2
0
 def test_output_2(self):
     self.maxDiff = None
     self.dev1 = Mock(**self.output_2)
     obj = ShowDot1xAllSummary(device = self.dev1)
     parsed = obj.parse()
     self.assertEqual(parsed, self.parsed_output_2)