2012-05-26 07:36:16 +00:00
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from fowl.game.models import League, Star, Team, Event, Match
|
2012-05-27 20:57:16 +00:00
|
|
|
from fowl.game.tests import _give_belt
|
2012-05-26 07:36:16 +00:00
|
|
|
|
2012-05-26 18:28:35 +00:00
|
|
|
User.objects.all().delete()
|
|
|
|
League.objects.all().delete()
|
|
|
|
Team.objects.all().delete()
|
2012-05-27 05:45:54 +00:00
|
|
|
Event.objects.all().delete()
|
2012-05-26 18:28:35 +00:00
|
|
|
|
2012-05-27 20:57:16 +00:00
|
|
|
_give_belt('cmpunk', 'wwe')
|
|
|
|
_give_belt('sheamus', 'heavyweight')
|
|
|
|
_give_belt('kofikingston', 'tag')
|
|
|
|
_give_belt('rtruth', 'tag')
|
|
|
|
_give_belt('layla', 'diva')
|
|
|
|
_give_belt('codyrhodes', 'ic')
|
|
|
|
_give_belt('santinomarella', 'us')
|
|
|
|
|
2012-05-26 07:36:16 +00:00
|
|
|
james = User.objects.create_superuser('james', 'james.p.turk@gmail.com', 'james')
|
|
|
|
erin = User.objects.create_user('erin', 'erin.braswell@gmail.com', 'erin')
|
|
|
|
kevin = User.objects.create_user('kevin', 'kevin.wohlgenant@gmail.com', 'kevin')
|
|
|
|
league = League.objects.create(name='Fire Pro Wrestling')
|
|
|
|
gm_punk = Team.objects.create(name='GM Punk', login=james, league=league)
|
|
|
|
awesome = Team.objects.create(name="I'm AWEsome!", login=kevin, league=league)
|
|
|
|
cobra = Team.objects.create(name='COBRA!', login=erin, league=league)
|
|
|
|
|
2012-05-28 03:49:30 +00:00
|
|
|
punks = ('cmpunk', 'markhenry', 'rtruth', 'codyrhodes',
|
|
|
|
'tensai', 'antoniocesaro', 'wadebarrett', 'aj', 'bethphoenix',
|
|
|
|
'brock-lesnar', 'mickfoley')
|
2012-05-26 18:28:35 +00:00
|
|
|
for person in punks:
|
|
|
|
gm_punk.add_star(pk=person)
|
|
|
|
|
|
|
|
awesomes = ('chrisjericho', 'sheamus', 'danielbryan', 'ryback', 'damien-sandow',
|
2012-05-28 03:49:30 +00:00
|
|
|
'kharma', 'kellykelly', 'brodusclay', 'johncena',
|
|
|
|
'paulheyman', 'paulbearer')
|
2012-05-26 18:28:35 +00:00
|
|
|
for person in awesomes:
|
|
|
|
awesome.add_star(pk=person)
|
2012-05-26 07:36:16 +00:00
|
|
|
|
2012-05-26 18:28:35 +00:00
|
|
|
cobras = ('santinomarella', 'dolphziggler', 'kofikingston', 'albertodelrio',
|
2012-05-28 03:49:30 +00:00
|
|
|
'randyorton', 'bigshow', 'titusoneil', 'layla', 'natalya',
|
|
|
|
'edge', 'jimross')
|
2012-05-26 18:28:35 +00:00
|
|
|
for person in cobras:
|
2012-05-27 05:45:54 +00:00
|
|
|
cobra.add_star(pk=person)
|
|
|
|
|
2012-05-27 20:57:16 +00:00
|
|
|
# RAW 5/14
|
2012-05-27 05:45:54 +00:00
|
|
|
event = Event.objects.create(name='RAW', date='2012-05-14')
|
|
|
|
event.add_match(['cmpunk', 'santinomarella'], ['codyrhodes', 'danielbryan'],
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='cmpunk', outcome='normal')
|
2012-05-27 05:45:54 +00:00
|
|
|
event.add_match('aliciafox', 'bethphoenix', winner='bethphoenix',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
|
|
|
event.add_match('bigshow', 'kane', winner='kane', outcome='normal')
|
2012-05-27 05:45:54 +00:00
|
|
|
event.add_match(['brodusclay', 'kofikingston', 'rtruth'],
|
|
|
|
['themiz', 'jackswagger', 'dolphziggler'],
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='brodusclay', outcome='normal')
|
2012-05-27 05:45:54 +00:00
|
|
|
event.add_match('chrisjericho', 'randyorton',
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='chrisjericho', outcome='DQ',
|
|
|
|
notes='Sheamus interfered, giving Jericho the win')
|
|
|
|
event.add_match('paulheyman', outcome='appearance',
|
|
|
|
notes='Paul Heyman is going to sue for Bork Laser')
|
2012-05-27 20:57:16 +00:00
|
|
|
league.score_event(event)
|
|
|
|
|
|
|
|
# Smackdown 5/18
|
|
|
|
event = Event.objects.create(name='Smackdown', date='2012-05-18')
|
|
|
|
event.add_match(['kofikingston', 'rtruth'], ['darrenyoung', 'titusoneil'],
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='rtruth', outcome='normal')
|
|
|
|
event.add_match('damien-sandow', 'yoshitatsu',
|
|
|
|
outcome='brawl',
|
|
|
|
notes='sandow refuses to fight, leads to a brawl')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('zackryder', 'danielbryan', winner='danielbryan',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='submission')
|
|
|
|
event.add_match('cmpunk', 'kane', winner='kane', outcome='dq',
|
2012-05-27 20:57:16 +00:00
|
|
|
notes='bryan hits kane with a chair, kane wins by DQ')
|
|
|
|
event.add_match('santinomarella', 'codyrhodes', winner='santinomarella',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
|
|
|
event.add_match('randyorton', 'sheamus', winner='sheamus', outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
league.score_event(event)
|
|
|
|
|
|
|
|
# Over the Limit 5/20
|
|
|
|
event = Event.objects.create(name='Over the Limit', date='2012-05-20')
|
2012-05-28 03:49:30 +00:00
|
|
|
event.add_match('zackryder', 'kane', winner='kane', outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('alexriley', 'christian', 'curthawkins', 'darrenyoung',
|
|
|
|
'davidotunga', 'drewmcintyre', 'ezekieljackson',
|
|
|
|
'thegreatkhali', 'heathslater', 'jeyuso', 'jimmyuso', 'jindermahal',
|
|
|
|
'jtg', 'michaelmcgillicutty', 'themiz', 'titusoneil',
|
|
|
|
'tylerreks', 'tysonkidd', 'williamregal', 'yoshitatsu',
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='christian', outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match(['kofikingston', 'rtruth'], ['dolphziggler', 'jackswagger'],
|
2012-05-28 06:18:46 +00:00
|
|
|
winner='kofikingston', outcome='normal', title_at_stake='tag')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('layla', 'bethphoenix', winner='layla',
|
2012-05-28 06:18:46 +00:00
|
|
|
outcome='normal', title_at_stake='divas')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('sheamus', 'randyorton', 'chrisjericho', 'albertodelrio',
|
2012-05-28 06:18:46 +00:00
|
|
|
winner='sheamus', outcome='normal',
|
|
|
|
title_at_stake='heavyweight')
|
2012-05-28 03:49:30 +00:00
|
|
|
event.add_match('brodusclay', 'themiz', winner='brodusclay', outcome='normal')
|
2012-05-28 06:18:46 +00:00
|
|
|
event.add_match('christian', 'codyrhodes', winner='christian',
|
|
|
|
outcome='normal', title_at_stake='ic')
|
2012-05-27 20:57:16 +00:00
|
|
|
_give_belt('christian', 'ic')
|
2012-05-28 03:49:30 +00:00
|
|
|
event.add_match('cmpunk', 'danielbryan', winner='cmpunk', outcome='normal',
|
2012-05-28 06:18:46 +00:00
|
|
|
title_at_stake='wwe')
|
2012-05-28 03:49:30 +00:00
|
|
|
event.add_match('ryback', 'camacho', winner='ryback', outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('john-laurinaitis', 'johncena', 'bigshow',
|
2012-05-28 00:45:44 +00:00
|
|
|
winner='john-laurinaitis',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal', notes='Big Show interferes in a big way')
|
2012-05-27 05:45:54 +00:00
|
|
|
league.score_event(event)
|
2012-05-27 20:57:16 +00:00
|
|
|
|
|
|
|
# 5/21 RAW
|
|
|
|
event = Event.objects.create(name='RAW', date='2012-05-21')
|
|
|
|
event.add_match('davidotunga', 'johncena', winner='johncena',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='submission')
|
2012-05-27 20:57:16 +00:00
|
|
|
# Brawl: Tyler Reks & Curt Hawkins & Titus O'Neil & Daren Young & Sheamus
|
|
|
|
# Brawl: Santino vs. Ricardo
|
|
|
|
event.add_match('albertodelrio', 'randyorton', winner='randyorton',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='DQ', notes='Jericho codebreaks RKO, Orton wins')
|
|
|
|
event.add_match('danielbryan', 'kane', winner='danielbryan', outcome='DQ',
|
2012-05-27 20:57:16 +00:00
|
|
|
notes='Kane uses chair, Bryan wins')
|
2012-05-28 03:49:30 +00:00
|
|
|
event.add_match('christian', 'jindermahal', winner='christian', outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match('bethphoenix', 'kellykelly', winner='bethphoenix',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
2012-05-27 20:57:16 +00:00
|
|
|
event.add_match(['johncena', 'sheamus'],
|
|
|
|
['tensai', 'jackswagger', 'dolphziggler'],
|
|
|
|
notes='Lumberjacks rush ring, no contest')
|
|
|
|
league.score_event(event)
|
|
|
|
|
2012-05-27 21:28:39 +00:00
|
|
|
# COBRA! draft actions
|
|
|
|
cobra.drop_star('titusoneil')
|
|
|
|
cobra.add_star('christian')
|
|
|
|
# GM Punk draft actions
|
|
|
|
gm_punk.drop_star('markhenry')
|
|
|
|
gm_punk.add_star('sin-cara')
|
|
|
|
gm_punk.drop_star('tensai')
|
|
|
|
gm_punk.add_star('kane')
|
|
|
|
|
|
|
|
# 5/25 Smackdown
|
|
|
|
event = Event.objects.create(name='Smackdown', date='2012-05-25')
|
|
|
|
event.add_match('christian', 'hunico', winner='christian',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
event.add_match(['titusoneil', 'darrenyoung'],
|
|
|
|
['jimmyuso', 'jeyuso'],
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='titusoneil', outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
Star.objects.create(name='Nobody One', pk='nobody1')
|
|
|
|
Star.objects.create(name='Nobody Two', pk='nobody2')
|
|
|
|
event.add_match('ryback',
|
|
|
|
['nobody1', 'nobody2'], winner='ryback',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
event.add_match('santinomarella', 'ricardorodriguez',
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='santinomarella', outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
event.add_match('sheamus', 'jackswagger', winner='sheamus',
|
2012-05-28 03:49:30 +00:00
|
|
|
outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
event.add_match('damien-sandow', 'yoshitatsu',
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='damien-sandow', outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
# daniel bryan vs kane brawl
|
|
|
|
event.add_match('randyorton', 'kane', 'albertodelrio',
|
2012-05-28 03:49:30 +00:00
|
|
|
winner='albertodelrio', outcome='normal')
|
2012-05-27 21:28:39 +00:00
|
|
|
league.score_event(event)
|
|
|
|
|