review/tests/test_init.py @ 6b629b714299

Add the nose testing skeleton.
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Oct 2009 15:26:27 -0400
parents (none)
children 896d4023c274
from nose import *
from mercurial import commands, ui
import os


sandbox_path = os.path.join(os.path.realpath('.'), 'hgreview_test')

def setup_sandbox():
    os.mkdir(sandbox_path)
    os.chdir(sandbox_path)
    
    commands.init(ui.ui())
    
def teardown_sandbox():
    os.chdir(os.path.realpath(os.path.join(sandbox_path, os.pardir)))
    os.rmdir(sandbox_path)
    

@with_setup(setup_sandbox, teardown_sandbox)
def test_default_init():
    pass