<filename>festival/tests.py<gh_stars>1-10
from django.test import TestCase
from festival.models import Artist

NAME = '<NAME>'
class ArtImageNamersCase(TestCase):
    def setUp(self):
        Artist.objects.create(name = NAME, festival='2015')

    def test_headshotNamer(self):
        artist = Artist.objects.get(name=NAME)
        class A:
            name='<NAME>'
            festival = '2015 - Antidote & All'
        print headshotNamer(A(), 'X.jepg')


<filename>festival/tests.py<gh_stars>1-10
from django.test import TestCase
from festival.models import Artist

NAME = '<NAME>'
class ArtImageNamersCase(TestCase):
    def setUp(self):
        Artist.objects.create(name = NAME, festival='2015')

    def test_headshotNamer(self):
        artist = Artist.objects.get(name=NAME)
        class A:
            name='<NAME>'
            festival = '2015 - Antidote & All'
        print headshotNamer(A(), 'X.jepg')

