コード例 #1
0
ファイル: test_cell.py プロジェクト: aliafshar/pygtkhelpers
def test_cell_format_string():
    cell = Cell('test', format='hoo %s')
    assert cell.format_data(1) == 'hoo 1'
コード例 #2
0
ファイル: test_cell.py プロジェクト: aliafshar/pygtkhelpers
def test_cell_format_func():
    cell = Cell('test', format_func=str)
    assert cell.format_data(1) == '1'