Ejemplo n.º 1
0
    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())
Ejemplo n.º 2
0
    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())
Ejemplo n.º 3
0
    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())
Ejemplo n.º 4
0
    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())