Пример #1
0
def test_SelectColumn_forward_compatibility():
    sc = SelectColumn(id=1,
                      columnType="STRING",
                      name="my_col",
                      columnSQL="new")
    assert_equals(1, sc.get("id"))
    assert_equals("STRING", sc.get("columnType"))
    assert_equals("my_col", sc.get("name"))
    assert_equals("new", sc.get("columnSQL"))
def test_SelectColumn_forward_compatibility():
    sc = SelectColumn(id=1, columnType="STRING", name="my_col", columnSQL="new")
    assert_equals(1, sc.get("id"))
    assert_equals("STRING", sc.get("columnType"))
    assert_equals("my_col", sc.get("name"))
    assert_equals("new", sc.get("columnSQL"))
def test_SelectColumn_forward_compatibility():
    sc = SelectColumn(id=1, columnType="STRING", name="my_col", columnSQL="new")
    assert 1 == sc.get("id")
    assert "STRING" == sc.get("columnType")
    assert "my_col" == sc.get("name")
    assert "new" == sc.get("columnSQL")