def test_message_location_str_returns_the_to_str_of_its_location(self): message = self.message.copy() message['location'] = self.village rapid_pro_message = RapidProMessageBase(**message).save() self.assertEqual("Kampala >> Bukoto", rapid_pro_message.location_str())
def test_message_location_str_returns_the_to_str_of_its_location(self): message = self.message.copy() message['location'] = self.village rapid_pro_message = RapidProMessageBase(**message).save() self.assertEqual("Kampala >> Bukoto", rapid_pro_message.location_str())
def test_message_location_str_is_empty_if_no_location(self): rapid_pro_message = RapidProMessageBase(**self.message).save() self.assertEqual("", rapid_pro_message.location_str())
def test_message_location_str_is_empty_if_no_location(self): rapid_pro_message = RapidProMessageBase(**self.message).save() self.assertEqual("", rapid_pro_message.location_str())