Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/c/h/chieftain-HEAD/api1/views.py   chieftain(Download)
from board import models
from board.shortcuts import add_sidebar
from board.tools import (
    make_tripcode, parse_user_agent,
    get_key, handle_uploaded_file
    author, tripcode = (author.split("#", 1) + [""])[:2]
    if tripcode:
        post.tripcode = make_tripcode(tripcode)
    post.poster = author
 

src/c/h/chieftain-HEAD/board/tests.py   chieftain(Download)
from board.tools import make_tripcode
 
 
def post_description_test():
    pass
 
 
def tripcode_test():
    assert make_tripcode("tripcode") == "3GqYIJ3Obs"
    assert make_tripcode("tripcod3") == "U6qBEwdIxU"
def tripcode_test():
    assert make_tripcode("tripcode") == "3GqYIJ3Obs"
    assert make_tripcode("tripcod3") == "U6qBEwdIxU"
    assert make_tripcode("##") == make_tripcode("###")