summary refs log tree commit diff stats
path: root/test/stuff
Commit message (Expand)AuthorAgeFilesLines
* moved/fixed testshut2009-12-116-0/+236
uthor hut <hut@lavabit.com> 2009-12-11 23:39:45 +0100 committer hut <hut@lavabit.com> 2009-12-11 23:39:45 +0100 clean ups' href='/akspecs/ranger/commit/test/__init__.py?h=v1.1.0&id=649a69cb87af38f4bf1848085d49d1193f6e01ab'>649a69cb ^
1159f9ec ^




















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29




                                                                


                                                                         




















                                                       
import os, sys

__all__ = [ x[0:x.index('.')] \
		for x in os.listdir(os.path.dirname(__file__)) \
		if x.startswith('tc_') ]

def init():
	sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))

class Fake(object):
	def __getattr__(self, attrname):
		if not hasattr(self, attrname):
			setattr(self, attrname, Fake())
		return self.__dict__[attrname]

	def __call__(self, *_):
		return Fake()

	def __clear__(self):
		self.__dict__.clear()

	def __iter__(self):
		return iter(())

class OK(Exception):
	pass

def raise_ok(*_, **__):
	raise OK()