Commit message (Expand) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 1199 - ignore errors in 'make clean' | Kartik K. Agaram | 2015-04-25 | 1 | -1/+1 |
* | 1014 - reorganize build system to prepare for .mu layers | Kartik K. Agaram | 2015-04-03 | 2 | -0/+40 |
index : mu | |
Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society. | Kartik K. Agaram <vc@akkartik.com> |
about summary refs log tree commit diff stats |
Commit message (Expand) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 1199 - ignore errors in 'make clean' | Kartik K. Agaram | 2015-04-25 | 1 | -1/+1 |
* | 1014 - reorganize build system to prepare for .mu layers | Kartik K. Agaram | 2015-04-03 | 2 | -0/+40 |
if __name__ == '__main__': from __init__ import init; init()
from unittest import TestCase, main
class Test(TestCase):
def test_wrapper(self):
from ranger.keyapi import Wrapper
class dummyfm(object):
def move(relative):
return "I move down by {0}".format(relative)
class commandarg(object):
def __init__(self):
self.fm = dummyfm
self.n = None
arg = commandarg()
do = Wrapper('fm')
command = do.move(relative=4)
self.assertEqual(command(arg), 'I move down by 4')
if __name__ == '__main__': main()