Exemple #1
0
 def test_events_parsing(self):
     """ Events data is put into events_parsing to test if a KeyError is raised """
     item_parser = ItemParser()
     data = {"type": "events", "unitid": 3987462323}
     self.assertEqual(item_parser.events_parsing(data), "Missing 1 or multiple attributes in events")
Exemple #2
0
 def test_monitoring_parsing(self):
     """ Monitoring data is put into monitoring_parsing to test if a KeyError is raised """
     item_parser = ItemParser()
     data = {"type": "monitoring", "unitid": 3987462323}
     self.assertEqual(item_parser.monitoring_parsing(data), "Missing 1 or multiple attributes in monitoring")
Exemple #3
0
 def test_connections_parsing(self):
     """ Connections data is put into connections_parsing to test if a KeyError is raised """
     item_parser = ItemParser()
     data = {"type": "connections", "unitid": 3987462323}
     self.assertEqual(item_parser.connections_parsing(data), "Missing 1 or multiple attributes in connections")
Exemple #4
0
 def test_car_parsing(self):
     """ Car data is put into car_parsing to test if a KeyError is raised """
     item_parser = ItemParser()
     data = {"type": "car"}
     self.assertEqual(item_parser.car_parsing(data), "Missing 1 or multiple attributes in car")