55 |
assert list(c.getPoswardConnections()) == n[3:] |
assert list(c.getPoswardConnections()) == n[3:] |
56 |
|
|
57 |
|
|
58 |
def testRotate(): |
def testRotateMove(): |
59 |
c.set(n[2], n[5]) |
c.set(n[2], n[5]) |
60 |
c.rotate(1) |
c.rotate(1) |
61 |
assert c.focus == n[2] and c.rotation == n[6] |
assert c.focus == n[2] and c.rotation == n[6] |
77 |
c.set(n[2], n[3]) |
c.set(n[2], n[3]) |
78 |
c.rotate(-1) |
c.rotate(-1) |
79 |
assert c.focus == n[2] and c.rotation == n[3] |
assert c.focus == n[2] and c.rotation == n[3] |
80 |
|
|
81 |
|
c.move(-1) |
82 |
|
assert c.focus == n[1] and c.rotation == n[2] |
83 |
|
c.move(-1) |
84 |
|
assert c.focus == n[0] and c.rotation == n[1] |
85 |
|
c.move(1) |
86 |
|
assert c.focus == n[1] and c.rotation == n[2] |
87 |
|
c.move(1) |
88 |
|
assert c.focus == n[2] and c.rotation == n[3] |