tests/mockblackbox.py
changeset 28028 ac49ecb2a897
parent 24705 0ead0a07ed9c
child 28943 417380aa5bbe
equal deleted inserted replaced
28027:14033c5dd261 28028:ac49ecb2a897
     2 
     2 
     3 def makedate():
     3 def makedate():
     4     return 0, 0
     4     return 0, 0
     5 def getuser():
     5 def getuser():
     6     return 'bob'
     6     return 'bob'
       
     7 def getpid():
       
     8     return 5000
     7 
     9 
     8 # mock the date and user apis so the output is always the same
    10 # mock the date and user apis so the output is always the same
     9 def uisetup(ui):
    11 def uisetup(ui):
    10     util.makedate = makedate
    12     util.makedate = makedate
    11     util.getuser = getuser
    13     util.getuser = getuser
       
    14     util.getpid = getpid