Example #1
0
 def test_aybabtuSubsubclass(self):
     """
     With a sub-sub-class of L{Versioned}, L{styles._aybabtu} returns a list
     containing the intervening subclass.
     """
     self.assertEqual(styles._aybabtu(VersionedSubSubClass),
                      [VersionedSubClass])
Example #2
0
 def test_aybabtuSubsubclass(self):
     """
     With a sub-sub-class of L{Versioned}, L{styles._aybabtu} returns a list
     containing the intervening subclass.
     """
     self.assertEqual(styles._aybabtu(VersionedSubSubClass),
                      [VersionedSubClass])
Example #3
0
 def test_aybabtuStrict(self):
     """
     For a diamond-shaped inheritance graph, L{styles._aybabtu} returns a
     list containing I{both} intermediate subclasses.
     """
     self.assertEqual(
         styles._aybabtu(VersionedDiamondSubClass),
         [VersionedSubSubClass, VersionedSubClass, SecondVersionedSubClass])
Example #4
0
 def test_aybabtuStrict(self):
     """
     For a diamond-shaped inheritance graph, L{styles._aybabtu} returns a
     list containing I{both} intermediate subclasses.
     """
     self.assertEqual(
         styles._aybabtu(VersionedDiamondSubClass),
         [VersionedSubSubClass, VersionedSubClass, SecondVersionedSubClass])
Example #5
0
 def test_aybabtuStrictSubclass(self):
     """
     There are no classes I{between} L{VersionedSubClass} and L{Versioned},
     so L{styles._aybabtu} returns an empty list.
     """
     self.assertEqual(styles._aybabtu(VersionedSubClass), [])
Example #6
0
 def test_aybabtuStrictEmpty(self):
     """
     L{styles._aybabtu} of L{Versioned} itself is an empty list.
     """
     self.assertEqual(styles._aybabtu(styles.Versioned), [])
Example #7
0
 def test_aybabtuStrictSubclass(self):
     """
     There are no classes I{between} L{VersionedSubClass} and L{Versioned},
     so L{styles._aybabtu} returns an empty list.
     """
     self.assertEqual(styles._aybabtu(VersionedSubClass), [])
Example #8
0
 def test_aybabtuStrictEmpty(self):
     """
     L{styles._aybabtu} of L{Versioned} itself is an empty list.
     """
     self.assertEqual(styles._aybabtu(styles.Versioned), [])