def test_get_list_of_columns_lowerconversion(self, setup_database):
    db = setup_database
    rows = [{'uNit': 'days', 'Description': 'At berth/anchor', 'namE': 's_berth_day'}, {'unit': 'SOG / kts', 'description': 'Average at sea', 'name': 's_av_sea'}]
    with db:
        actual = db.clean._get_list_of_columns(rows[0])
    assert isinstance(actual, str)
    assert actual.endswith(')')
    assert (actual[0] == '(')
    actual_contents = actual.strip('()').split(',')
    expected = ['description', 'name', 'unit']
    for expected_column in expected:
        assert (expected_column in actual_contents)
def test_get_list_of_columns_lowerconversion(self, setup_database):
    db = setup_database
    rows = [{'uNit': 'days', 'Description': 'At berth/anchor', 'namE': 's_berth_day'}, {'unit': 'SOG / kts', 'description': 'Average at sea', 'name': 's_av_sea'}]
    with db:
        actual = db.clean._get_list_of_columns(rows[0])
    assert isinstance(actual, str)
    assert actual.endswith(')')
    assert (actual[0] == '(')
    actual_contents = actual.strip('()').split(',')
    expected = ['description', 'name', 'unit']
    for expected_column in expected:
        assert (expected_column in actual_contents)