Exemple #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})
Exemple #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
     })
Exemple #3
0
 def strings(self):
     return GridFixture([["a", "b"], ["c", "d"]], {"name": "String"})
Exemple #4
0
 def ints(self):
     return GridFixture([[1, 2], [3, 4]], {"name": "Int"})
Exemple #5
0
 def empty(self):
     return GridFixture([], {"name": "String"})