fowl/league.py
2012-06-30 00:21:35 -04:00

254 lines
12 KiB
Python

from django.contrib.auth.models import User
from fowl.game.models import League, Star, Team, Event, Match
from fowl.game.tests import _give_belt
User.objects.all().delete()
League.objects.all().delete()
Team.objects.all().delete()
Event.objects.all().delete()
Star.objects.get(pk='cmpunk').win_title('wwe', '2011-11-20')
Star.objects.get(pk='santinomarella').win_title('us', '2012-03-05')
Star.objects.get(pk='sheamus').win_title('world', '2012-04-01')
Star.objects.get(pk='layla').win_title('divas', '2012-04-29')
Star.objects.get(pk='kofikingston').win_title('tag', '2012-04-30',
tag_partner=Star.objects.get(pk='rtruth'))
Star.objects.get(pk='christian').win_title('ic', '2011-05-20')
james = User.objects.create_superuser('james', 'james.p.turk@gmail.com',
'james')
erin = User.objects.create_superuser('erin', 'erin.braswell@gmail.com',
'erin')
kevin = User.objects.create_superuser('kevin', 'kevin.wohlgenant@gmail.com',
'kevin')
patrick = User.objects.create_superuser('patrick', 'patricksimmons85@gmail.com',
'patrick')
league = League.objects.create(name='Fire Pro Wrestling')
gm_punk = Team.objects.create(name='GM Punk', login=james, league=league,
color='#1540a4')
awesome = Team.objects.create(name="I'm AWEsome!", login=kevin, league=league,
color='#f5a506')
cobra = Team.objects.create(name='COBRA!', login=erin, league=league,
color='#05c405')
ruleyou = Team.objects.create(name='I Will Rule You', login=patrick,
league=league, color='#a600c9')
for star in ('cmpunk', 'johncena', 'jackswagger',
'albertodelrio', 'ryback', 'damien-sandow',
'darrenyoung', 'aj', 'bethphoenix',
'ricflair', 'hbk'):
print star
awesome.add_star(star)
for star in ('santinomarella', 'rtruth', 'brodusclay',
'dolphziggler', 'thegreatkhali', 'titusoneil',
'reymysterio', 'kaitlyn', 'natalya',
'paulheyman', 'mickfoley'):
print star
cobra.add_star(star)
for star in ('bigshow', 'davidotunga', 'themiz',
'danielbryan', 'christian', 'williamregal',
'zackryder', 'layla', 'eve',
'roddypiper', 'edge'):
print star
ruleyou.add_star(star)
for star in ('kofikingston', 'kane', 'masonryan',
'sheamus', 'sin-cara', 'codyrhodes',
'antoniocesaro', 'kharma', 'kellykelly',
'brock-lesnar', 'jimross'):
print star
gm_punk.add_star(star)
# 6/1 Smackdown
event = Event.objects.create(name='Smackdown', date='2012-06-01')
event.add_match('sin-cara', 'heathslater', winner='sin-cara',
outcome='normal')
event.add_match('damien-sandow', 'ezekieljackson',
winner='damien-sandow', outcome='normal')
event.add_match('ryback',
['nobody1', 'nobody2'], winner='ryback',
outcome='normal')
event.add_match('dolphziggler', 'sheamus',
winner='sheamus', outcome='normal')
event.add_match(['titusoneil', 'darrenyoung'],
['santinomarella', 'zackryder'],
winner='santinomarella', outcome='normal')
event.add_match('tysonkidd', 'codyrhodes',
winner='codyrhodes', outcome='normal')
event.add_match('cmpunk', 'kane',
outcome='no contest', title_at_stake='wwe')
league.score_event(event)
# 6/4 raw
event = Event.objects.create(name='RAW', date='2012-06-04')
event.add_match('sheamus', 'dolphziggler', winner='sheamus', outcome='normal')
event.add_match('sin-cara', 'hunico', winner='sin-cara', outcome='normal')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes='arthur rosenberg and stan stanski, names to watch')
event.add_match('cmpunk', 'kane', outcome='normal', winner='kane')
event.add_match(['kofikingston', 'rtruth'], ['tylerreks', 'curthawkins'],
winner='kofikingston', outcome='normal')
event.add_match('johncena', 'tensai', winner='johncena', outcome='normal')
event.add_match('johncena', 'michaelcole', winner='johncena', outcome='normal')
league.score_event(event)
# 6/1 Smackdown
event = Event.objects.create(name='Smackdown', date='2012-06-08')
event.add_match('albertodelrio', 'thegreatkhali', winner='albertodelrio',
outcome='submission')
event.add_match('brodusclay', 'derrickbateman', winner='brodusclay',
outcome='normal')
event.add_match('sin-cara', 'drewmcintyre', winner='sin-cara', outcome='normal')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="kevin & tony will be the start of ryback's downfall")
event.add_match('christian', 'dolphziggler', winner='christian',
outcome='normal')
event.add_match('jimmyuso', 'antoniocesaro', winner='antoniocesaro',
outcome='normal')
event.add_match('kane', 'sheamus', winner='sheamus', outcome='dq')
league.score_event(event)
# give patrick Jericho instead of Regal
ruleyou.drop_star('williamregal')
ruleyou.add_star('chrisjericho')
# give james alicia fox instead of kellykelly
gm_punk.drop_star('kellykelly')
gm_punk.add_star('aliciafox')
if Star.objects.filter(pk='vader').count() == 0:
Star.objects.create(pk='vader', name='Vader', division='other')
event = Event.objects.create(name='RAW', date='2012-06-11')
event.add_match('sheamus', 'tensai', winner='sheamus', outcome='normal')
event.add_match(['santinomarella', 'layla'],
['bethphoenix', 'ricardorodriguez'],
winner='bethphoenix', outcome='normal')
event.add_match('dolphziggler', 'jackswagger', 'thegreatkhali', 'christian',
winner='dolphziggler', outcome='normal')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="two ex-presidents can't defeat ryback")
event.add_match('bigshow', 'kofikingston', winner='bigshow', outcome='normal')
event.add_match('sin-cara', 'curthawkins', winner='sin-cara', outcome='normal')
event.add_match('vader', 'heathslater', winner='vader', outcome='normal')
event.add_match(['kane', 'danielbryan'], ['cmpunk', 'aj'], winner='cmpunk',
outcome='normal')
league.score_event(event)
event = Event.objects.create(name='Smackdown', date='2012-06-15')
event.add_match(['cmpunk', 'sheamus'], ['danielbryan', 'dolphziggler'],
winner='dolphziggler', outcome='normal')
event.add_match('brodusclay', 'heathslater', winner='brodusclay',
outcome='normal',
notes='i think this was 10 seconds long, then otungaaaa')
event.add_match('bethphoenix', 'aliciafox', winner='bethphoenix',
outcome='normal', notes='11 seconds')
event.add_match('christian', 'jackswagger', winner='christian',
outcome='normal')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="you think we are a joke? - yes, we do")
event.add_match('tysonkidd', 'damien-sandow', winner='damien-sandow',
outcome='normal')
league.score_event(event)
event = Event.objects.create(name='No Way Out', date='2012-06-17')
event.add_match('brodusclay', 'davidotunga', winner='brodusclay',
outcome='normal')
event.add_match('sheamus', 'dolphziggler', winner='sheamus',
title_at_stake='world', outcome='normal')
event.add_match('santinomarella', 'ricardorodriguez', winner='santinomarella',
outcome='normal', notes='tuxedo match')
event.add_match('codyrhodes', 'christian', winner='christian',
outcome='normal', title_at_stake='ic')
event.add_match(['jimmyuso', 'jeyuso'], ['tysonkidd', 'justingabriel'],
['titusoneil', 'darrenyoung'], ['primo', 'epico'],
outcome='normal', winner='darrenyoung')
event.add_match('bethphoenix', 'layla', outcome='normal', winner='layla',
title_at_stake='divas')
event.add_match('sin-cara', 'hunico', outcome='normal', winner='sin-cara')
event.add_match('cmpunk', 'danielbryan', 'kane', outcome='normal',
winner='cmpunk', title_at_stake='wwe')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="more jobbers ruining their lifes")
event.add_match('johncena', 'bigshow', winner='johncena', outcome='normal')
league.score_event(event)
event = Event.objects.create(name='RAW', date='2012-06-18')
event.add_match('mickfoley', outcome='appearance')
event.add_match(['sheamus', 'cmpunk'], ['kane', 'danielbryan'],
winner='sheamus', outcome='normal')
event.add_match('dolphziggler', 'jackswagger',
winner='dolphziggler', outcome='normal')
event.add_match('paulheyman', outcome='appearance')
event.add_match('santinomarella', 'albertodelrio', winner='albertodelrio',
outcome='submission')
event.add_match('roddypiper', outcome='appearance',
notes="protecting cindi lauper's honor")
event.add_match(['titusoneil', 'darrenyoung'], ['primo', 'epico'],
outcome='normal', winner='primo')
event.add_match('johncena', ['john-laurinaitis', 'davidotunga'],
outcome='submission', winner='johncena',
notes='big show walked out')
league.score_event(event)
event = Event.objects.create(name='Smackdown', date='2012-06-22')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="2 midgets?")
event.add_match('albertodelrio', 'christian', winner='albertodelrio',
outcome='submission', notes='crotch arm breaker')
event.add_match('kane', 'danielbryan', winner='kane', outcome='normal',
notes='crazy time keeper')
event.add_match('zackryder', 'heathslater', winner='zackryder',
outcome='normal')
event.add_match(['jimmyuso', 'jeyuso'], ['titusoneil', 'darrenyoung'],
outcome='normal', winner='titusoneil')
event.add_match('sheamus', 'dolphziggler', winner='sheamus',
outcome='normal')
league.score_event(event)
event = Event.objects.create(name='RAW', date='2012-06-25')
event.add_match('kane', 'cmpunk', 'danielbryan', winner='danielbryan',
outcome='normal')
event.add_match('brodusclay', 'bigshow', winner='bigshow', outcome='normal')
event.add_match('santinomarella', 'jackswagger', winner='santinomarella',
title_at_stake='us', outcome='normal')
event.add_match('dolphziggler', 'albertodelrio', notes='botched?')
event.add_match('bethphoenix', 'aliciafox', 'kaitlyn', 'maxine', 'rosamendes',
'nobody1', 'vickieguerrero', 'aj', 'natalya', 'layla',
winner='aj', notes='beach battle royal')
event.add_match('johncena', 'chrisjericho', outcome='dq', winner='johncena',
notes='big show interferes')
league.score_event(event)
event = Event.objects.create(name='Smackdown', date='2012-06-29')
event.add_match('aj', 'layla', winner='layla', outcome='normal')
event.add_match('zackryder', 'damien-sandow', winner='damien-sandow',
outcome='normal')
event.add_match('tysonkidd', 'jackswagger', winner='tysonkidd',
outcome='normal')
event.add_match(['santinomarella', 'christian'], ['codyrhodes', 'davidotunga'],
winner='christian', outcome='normal')
event.add_match('ryback', ['nobody1', 'nobody2'], winner='ryback',
outcome='normal',
notes="2 midgets?")
event.add_match('tensai', 'justingabriel', winner='tensai', outcome='normal')
event.add_match('sheamus', 'dolphziggler', 'albertodelrio', winner='sheamus',
outcome='normal', title_at_stake='world')
league.score_event(event)