[Checkins] SVN: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/ Rename test case to match the name of the helper func it tests.

Philipp von Weitershausen philikon at philikon.de
Sun May 4 08:59:04 EDT 2008


Log message for revision 86360:
  Rename test case to match the name of the helper func it tests.

Changed:
  A   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_classes.txt
  D   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components.txt
  D   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components_fixture/
  A   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test2.py
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test3.py
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test4.py
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/test_all.py

-=-
Copied: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_classes.txt (from rev 86357, martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components.txt)
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_classes.txt	                        (rev 0)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_classes.txt	2008-05-04 12:59:03 UTC (rev 86360)
@@ -0,0 +1,35 @@
+Scanning for the context object
+-------------------------------
+
+Let's import a module that contains no ``Context`` subclass, nor classes
+that implement ``IContext``::
+
+  >>> from martian.tests.scanforclasses import IContext
+
+We shouldn't see any classes that are contexts::
+
+  >>> from martian.util import scan_for_classes
+  >>> from martian.tests.scanforclasses import test1
+  >>> list(scan_for_classes(test1, interface=IContext))
+  []
+
+Now we look at a module with a single ``Context`` subclass::
+
+  >>> from martian.tests.scanforclasses import test2
+  >>> list(scan_for_classes(test2, interface=IContext))
+  [<class 'martian.tests.scanforclasses.test2.MyContext'>]
+
+Now we'll look at a module with a single class that implements ``IContext``::
+
+  >>> from martian.tests.scanforclasses import test3
+  >>> list(scan_for_classes(test3, interface=IContext))
+  [<class 'martian.tests.scanforclasses.test3.MyContext'>]
+
+Let's finish by looking at a module which defines multiple contexts::
+
+  >>> from martian.tests.scanforclasses import test4
+  >>> len(list(scan_for_classes(test4, interface=IContext)))
+  4
+
+
+

Deleted: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components.txt
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components.txt	2008-05-04 12:58:48 UTC (rev 86359)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components.txt	2008-05-04 12:59:03 UTC (rev 86360)
@@ -1,36 +0,0 @@
-Scanning for the context object
--------------------------------
-
-Let's import a module that contains no ``Context`` subclass, nor classes
-that implement ``IContext``::
-
-  >>> import martian.tests.scan_for_module_components_fixture as tests
-  >>> IContext = tests.IContext
-
-We shouldn't see any classes that are contexts::
-
-  >>> from martian.util import scan_for_classes
-  >>> from martian.tests.scan_for_module_components_fixture import test1
-  >>> list(scan_for_classes(test1, interface=IContext))
-  []
-
-Now we look at a module with a single ``Context`` subclass::
-
-  >>> from martian.tests.scan_for_module_components_fixture import test2
-  >>> list(scan_for_classes(test2, interface=IContext))
-  [<class 'martian.tests.scan_for_module_components_fixture.test2.MyContext'>]
-
-Now we'll look at a module with a single class that implements ``IContext``::
-
-  >>> from martian.tests.scan_for_module_components_fixture import test3
-  >>> list(scan_for_classes(test3, interface=IContext))
-  [<class 'martian.tests.scan_for_module_components_fixture.test3.MyContext'>]
-
-Let's finish by looking at a module which defines multiple contexts::
-
-  >>> from martian.tests.scan_for_module_components_fixture import test4
-  >>> len(list(scan_for_classes(test4, interface=IContext)))
-  4
-
-
-

Copied: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses (from rev 86357, martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components_fixture)

Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test2.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components_fixture/test2.py	2008-05-04 12:56:06 UTC (rev 86357)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test2.py	2008-05-04 12:59:03 UTC (rev 86360)
@@ -2,7 +2,7 @@
 # this module is used in a scan_for_context.txt test.
 
 import os
-from martian.tests.scan_for_module_components_fixture import Context
+from martian.tests.scanforclasses import Context
 
 foo = "Bar"
 

Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test3.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components_fixture/test3.py	2008-05-04 12:56:06 UTC (rev 86357)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test3.py	2008-05-04 12:59:03 UTC (rev 86360)
@@ -2,7 +2,7 @@
 # this module is used in a scan_for_context.txt test.
 
 import os
-from martian.tests.scan_for_module_components_fixture import IContext
+from martian.tests.scanforclasses import IContext
 from zope.interface import implements
 
 foo = "Bar"

Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test4.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scan_for_module_components_fixture/test4.py	2008-05-04 12:56:06 UTC (rev 86357)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/scanforclasses/test4.py	2008-05-04 12:59:03 UTC (rev 86360)
@@ -2,7 +2,7 @@
 # this module is used in a scan_for_context.txt test.
 
 import os
-from martian.tests.scan_for_module_components_fixture import IContext, Context
+from martian.tests.scanforclasses import IContext, Context
 from zope.interface import implements
 
 foo = "Bar"

Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/test_all.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/test_all.py	2008-05-04 12:58:48 UTC (rev 86359)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/tests/test_all.py	2008-05-04 12:59:03 UTC (rev 86360)
@@ -76,7 +76,7 @@
                              package='martian',
                              globs=globs,
                              optionflags=optionflags),
-        doctest.DocFileSuite('scan_for_module_components.txt',
+        doctest.DocFileSuite('scan_for_classes.txt',
                              package='martian.tests',
                              optionflags=optionflags),
         ])



More information about the Checkins mailing list