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")
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")
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")
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")