Exemplo n.º 1
0
def main(cursor):
	page_data['Redirect'] = ''
	
	deity_id	= int(common.get_val("deity", 0))
	team_id		= int(common.get_val("team", 0))
	
	database.query(cursor, team_f.remove_deity(team_id, deity_id))
	
	page_data['Redirect'] = 'edit_team&team={0:d}'.format(team_id)
	return ""
Exemplo n.º 2
0
	def test_known(self):
		for team_id, deity_id, answer in self.known_values:
			result = team_f.remove_deity(team_id, deity_id)       
			self.assertEqual(result, answer)