Esempio n. 1
0
 def test_location_moved(self) -> None:
     move_location(
         client=self.client,
         location_id=self.location_2.id,
         new_parent_id=self.location_1.id,
     )
     moved_location = get_location(client=self.client,
                                   location_hirerchy=[("City", "Lima1"),
                                                      ("City", "Lima2")])
     self.assertEqual(self.location_2.id, moved_location.id)
Esempio n. 2
0
 def test_location_moved(self) -> None:
     move_location(self.client, self.location_2.id, self.location_1.id)
     moved_location = get_location(self.client, [("City", "Lima1"),
                                                 ("City", "Lima2")])
     self.assertEqual(self.location_2.id, moved_location.id)