summary refs log tree commit diff stats
path: root/test/tc_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_ext.py')
0 files changed, 0 insertions, 0 deletions
/a> 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()