tests/mockblackbox.py
author Matt Mackall <mpm@selenic.com>
Thu, 16 Apr 2015 20:31:44 -0500
changeset 24800 cde547252f2e
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
tests: ignore sha512 flag in bundle2 for py2.4

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser