Ejemplo n.º 1
0
 def shouldRemoveHandlerByNameFromList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Asis"))
     assert len(obj) == 2
     obj.removeHandler("Blank")
     assert len(obj) == 1
Ejemplo n.º 2
0
 def shouldRemoveHandlerByNameFromList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Asis"))
     assert len(obj) == 2
     obj.removeHandler("Blank")
     assert len(obj) == 1
Ejemplo n.º 3
0
 def shouldAddHandlerByName(self):
     obj = CellHandlers()
     obj.addHandler("Blank")
     assert len(obj) == 1
Ejemplo n.º 4
0
 def shouldntAddDuplicatesToList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Blank"))
     assert len(obj) == 1
Ejemplo n.º 5
0
 def shouldAddCellHandlersToList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Asis"))
     assert len(obj) == 2
Ejemplo n.º 6
0
 def shouldAddHandlerByName(self):
     obj = CellHandlers()
     obj.addHandler("Blank")
     assert len(obj) == 1
Ejemplo n.º 7
0
 def shouldntAddDuplicatesToList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Blank"))
     assert len(obj) == 1
Ejemplo n.º 8
0
 def shouldAddCellHandlersToList(self):
     obj = CellHandlers()
     obj.addHandler(CellHandler("Blank"))
     obj.addHandler(CellHandler("Asis"))
     assert len(obj) == 2