<filename>tests/cell_fabric/test_rect.py
from align.cell_fabric.transformation import Rect

def test_toList():
    r = Rect( 0, 0, 1, 1)
    assert r.toList() == [0, 0, 1, 1]

def test_canonical():
    r = Rect( 1, 1, 0, 0)
    assert r.canonical().toList() == [0, 0, 1, 1]

def test_repr():
    r = Rect( 0, 0, 1, 1)    
    assert r.__repr__() == "[0, 0, 1, 1]"
    assert repr(r) == "[0, 0, 1, 1]"
    assert str(r) == "[0, 0, 1, 1]"

<filename>tests/cell_fabric/test_rect.py
from align.cell_fabric.transformation import Rect

def test_toList():
    r = Rect( 0, 0, 1, 1)
    assert r.toList() == [0, 0, 1, 1]

def test_canonical():
    r = Rect( 1, 1, 0, 0)
    assert r.canonical().toList() == [0, 0, 1, 1]

def test_repr():
    r = Rect( 0, 0, 1, 1)    
    assert r.__repr__() == "[0, 0, 1, 1]"
    assert repr(r) == "[0, 0, 1, 1]"
    assert str(r) == "[0, 0, 1, 1]"
