Exemplo n.º 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])
Exemplo n.º 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])
Exemplo n.º 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])
Exemplo n.º 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])
Exemplo n.º 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), [])
Exemplo n.º 6
0
 def test_aybabtuStrictEmpty(self):
     """
     L{styles._aybabtu} of L{Versioned} itself is an empty list.
     """
     self.assertEqual(styles._aybabtu(styles.Versioned), [])
Exemplo n.º 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), [])
Exemplo n.º 8
0
 def test_aybabtuStrictEmpty(self):
     """
     L{styles._aybabtu} of L{Versioned} itself is an empty list.
     """
     self.assertEqual(styles._aybabtu(styles.Versioned), [])