Esempio n. 1
0
    def test_mission_location_update_image(self):
        """Locations should be able to specify an image.

        This test is for completeness sake.  Most of this is
        hidden away behind the model, admin, or form interactions.
        """
        location = Location()
        img = models.ImageField('location_image.png')
        location.image = img
        self.assertEqual(img, location.image)