()
| 356 | |
| 357 | |
| 358 | def test_duplicate(): |
| 359 | v = view.View() |
| 360 | with taddons.context(): |
| 361 | f = [ |
| 362 | tflow.tflow(), |
| 363 | tflow.tflow(), |
| 364 | ] |
| 365 | v.add(f) |
| 366 | assert len(v) == 2 |
| 367 | v.duplicate(f) |
| 368 | assert len(v) == 4 |
| 369 | assert v.focus.index == 2 |
| 370 | |
| 371 | |
| 372 | def test_remove(): |