示例#1
0
def test_backup():
    """ Test the backup function """
    vent_config = os.path.join(os.path.expanduser('~'), '.vent', 'vent.cfg')
    with open(vent_config, 'w') as f:
        f.write('[main]\nfiles = /test')
    instance = Action()
    status = instance.backup()
    assert isinstance(status, tuple)
    assert status[0] == True
    assert os.path.exists(status[1])
示例#2
0
def test_backup():
    """ Test the backup function """
    Action.backup()