TestGCodeListDecorator.py 454 B

12345678910111213141516
  1. from cura.Scene.GCodeListDecorator import GCodeListDecorator
  2. def test_setAndGetList():
  3. decorator = GCodeListDecorator()
  4. decorator.setGCodeList(["Test"])
  5. assert decorator.getGCodeList() == ["Test"]
  6. def test_copyGCodeDecorator():
  7. decorator = GCodeListDecorator()
  8. decorator.setGCodeList(["Test"])
  9. import copy
  10. copied_decorator = copy.deepcopy(decorator)
  11. assert decorator.getGCodeList() == copied_decorator.getGCodeList()