Ejemplo n.º 1
0
 def trees(self):
     return GridFixture(
         [[ListTree.parse("a"),
           ListTree.parse("<ul><li>a</li></ul>")],
          [
              ListTree.parse("<ul><li>BB</li></ul>"),
              ListTree.parse("<ul><li>a</li><li>BB</li></ul>")
          ]], {"name": TreeTypeAdapter})
Ejemplo n.º 2
0
 def images(self):
     return GridFixture([[
         ImageNameGraphic("images/wall.jpg"),
         ImageNameGraphic("images/space.jpg"),
         ImageNameGraphic("images/box.jpg"),
         ImageNameGraphic("images/space.jpg"),
         ImageNameGraphic("images/wall.jpg"),
     ]], {
         "name": GraphicTypeAdapter,
         "name.class": ImageNameGraphic
     })
Ejemplo n.º 3
0
 def strings(self):
     return GridFixture([["a", "b"], ["c", "d"]], {"name": "String"})
Ejemplo n.º 4
0
 def ints(self):
     return GridFixture([[1, 2], [3, 4]], {"name": "Int"})
Ejemplo n.º 5
0
 def empty(self):
     return GridFixture([], {"name": "String"})