def parking_space_availability_atos_support_poi_test(): """ Atos bss provider support """ provider = AtosProvider(u'10', u'vélitul', u'https://webservice.atos.com?wsdl', {'KEOLIS', 'effia', 'effia transport', u'kéolis'}) assert provider.support_poi(poi) poi['properties']['operator'] = 'EFFIA' assert provider.support_poi(poi) poi['properties']['operator'] = 'Keolis' assert provider.support_poi(poi) poi['properties']['operator'] = 'EFFIA Transport' assert provider.support_poi(poi) poi['properties']['operator'] = u'KÉOLIS' assert provider.support_poi(poi) poi['properties']['operator'] = 'Bad_operator' assert not provider.support_poi(poi) poi['properties']['operator'] = 'Bad_operator' poi['properties']['network'] = 'Bad_network' assert not provider.support_poi(poi) poi['properties']['operator'] = 'Bad_operator' assert not provider.support_poi(poi) invalid_poi = {} assert not provider.support_poi(invalid_poi) invalid_poi = {'properties': {}} assert not provider.support_poi(invalid_poi)
def parking_space_availability_atos_support_poi_test(): """ Atos bss provider support """ provider = AtosProvider(u'10', u'Vélitul', u'https://webservice.atos.com?wsdl') assert provider.support_poi(poi) poi['properties']['operator'] = 'Bad_operator' assert not provider.support_poi(poi) poi['properties']['operator'] = 'Keolis' poi['properties']['network'] = 'Bad_network' assert not provider.support_poi(poi) poi['properties']['operator'] = 'Bad_operator' assert not provider.support_poi(poi)