This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_opposites(self): | |
""" "scores" may contain values for opposite attribute values - | |
make sure the winner wins """ | |
scores = {'Realistic': [8], | |
'Investigative': [7], | |
'Artistic': [6], | |
'Social': [2], | |
'Enterprising': [1], | |
'Conventional': [3]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
from django.core.management.base import BaseCommand | |
## | |
## FancyImageModel is a plugin model holding a ImageField called "oldimage" and | |
## FilerImageField "image". It removed duplicates based on the basename of the original | |
## image. This may or may not work for you. | |
from imageplugin.models import FancyImageModel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.appengine.ext import webapp | |
from google.appengine.ext import db | |
from google.appengine.api.taskqueue import Task, Queue | |
from google.appengine.ext import deferred | |
import datetime | |
import random | |
def generate_random(l=8): |
NewerOlder