Example #1
0
    def test_character_udpate_image(self):
        """Characters 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.
        """
        toon = Character(name="ToonWithImage")
        img = models.ImageField("toon_with_image.png")
        toon.image = img
        self.assertEqual(img, toon.image)