'Test importing a bad JSON payload.'

def test_waypoint_import_bad_json(self):

    waypoints_message = WAYPOINTS_EXPORTED_MESSAGE.copy()
    self.send_message(WAYPOINT_TOPIC, waypoints_message, True)
    wayp = self.hass.states.get(WAYPOINT_ENTITY_NAMES[2])
    self.assertTrue((wayp is None))
    wayp = self.hass.states.get(WAYPOINT_ENTITY_NAMES[3])
    self.assertTrue((wayp is None))
