view tests/mockblackbox.py @ 25578:4b1ec70b9713

match: join two nested if-blocks Instead of if a: if b: return False let's write it if a and b: return False
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 31 May 2015 13:17:41 -0700
parents 0ead0a07ed9c
children ac49ecb2a897
line wrap: on
line source

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