Package grassyknoll :: Package tests :: Module test_GenericCollection
[hide private]

Module test_GenericCollection

source code

Classes [hide private]
  GenericBase
  GenericEmptyTest
  GenericLoadBase
  GenericCreateTest
  GenericTest
Functions [hide private]
 
make_doc(uid, size, color) source code
 
makeTests(makeCollection, name=None)
generate tests and inject them into caller's namespace.
source code
Variables [hide private]
  testdocs = dict([make_doc(u'pants', 32, u'blue'), make_doc(u's...
  testuids = [d.id for d in testdocs.itervalues()]
Function Details [hide private]

makeTests(makeCollection, name=None)

source code 
generate tests and inject them into caller's namespace.
Parameters:
  • makeCollection (function or class) - a Factory that returns an empty Collection. This may be a Collection subclass if its __init__ can be called without arguments.
  • name (str or None) - a name to use for test subclasses of the form 'my_module.MyCollection'. If None, a name will be inferred.

Variables Details [hide private]

testdocs

Value:
dict([make_doc(u'pants', 32, u'blue'), make_doc(u'shirt', u'XL', u'red\
'), make_doc(u'belt', 38, u'brown'), make_doc(u'shoes', 14, u'black')]\
)