def runTest(self):
    row_key = ['a','b','c','d','e','f']
    cell_values = {'a':{'c1':'1','c2':'2','c3':'3'},
                   'b':{'c1':'4','c2':'5','c3':'6'},
                   'c':{'c1':'7','c2':'8','c3':'9'},
                   'd':{'c1':'10','c2':'11','c3':'12'},
                   'e':{'c1':'13','c2':'14','c3':'15'},
                   'f':{'c1':'16','c2':'17','c3':'18'}}
    expected = [{'a':{'c1':'1','c2':'2','c3':'3'}},
                   {'b':{'c1':'4','c2':'5','c3':'6'}},
                   {'c':{'c1':'7','c2':'8','c3':'9'}},
                   {'d':{'c1':'10','c2':'11','c3':'12'}},
                   {'e':{'c1':'13','c2':'14','c3':'15'}},
                   {'f':{'c1':'16','c2':'17','c3':'18'}}]

    self.cass.batch_put_entity(TEST5_TABLE, row_key, TEST5_TABLE_SCHEMA, 
                               cell_values)
    column_names = TEST5_TABLE_SCHEMA
    limit = 10
    offset = 0
    startrow = 'a'
    endrow = 'f'
    start_in = True
    end_in = True
    assert self.cass.range_query(TEST5_TABLE, column_names, 
                                 startrow, endrow, 
                                 limit, offset, start_in, end_in) == expected

    keys_only = True
    expected = ['a','b','c','d','e','f']
    assert self.cass.range_query(TEST5_TABLE, column_names, 
                                 startrow, endrow, 
                                 limit, offset, start_in, 
                                 end_in, keys_only) is expected

    keys_only = False
    start_in = False
    expected = [{'b':{'c1':'4','c2':'5','c3':'6'}},
                   {'c':{'c1':'7','c2':'8','c3':'9'}},
                   {'d':{'c1':'10','c2':'11','c3':'12'}},
                   {'e':{'c1':'13','c2':'14','c3':'15'}},
                   {'f':{'c1':'16','c2':'17','c3':'18'}}]
    assert self.cass.range_query(TEST5_TABLE, column_names,
                                 startrow, endrow, limit, 
                                 offset, start_in, end_in) == expected

    expected = [{'b':{'c1':'4','c2':'5','c3':'6'}},
                   {'c':{'c1':'7','c2':'8','c3':'9'}},
                   {'d':{'c1':'10','c2':'11','c3':'12'}},
                   {'e':{'c1':'13','c2':'14','c3':'15'}}]

    end_in = False
    assert self.cass.range_query(TEST5_TABLE, column_names,
                                 startrow, endrow, limit, 
                                 offset, start_in, end_in) == expected

    expected = [{'b':{'c1':'4','c2':'5','c3':'6'}},
                   {'c':{'c1':'7','c2':'8','c3':'9'}},
                   {'d':{'c1':'10','c2':'11','c3':'12'}},
                   {'e':{'c1':'13','c2':'14','c3':'15'}}]
    start_in = True
    end_in = True
    startrow = 'b'
    endrow = 'e'
    assert self.cass.range_query(TEST5_TABLE, column_names,
                                 startrow, endrow, limit, offset, 
                                 start_in, end_in) == expected

    expected = [{'b':{'c1':'4','c2':'5','c3':'6'}},
                   {'c':{'c1':'7','c2':'8','c3':'9'}}]
    limit = 2    
    assert self.cass.range_query(TEST5_TABLE, column_names,
                                 startrow, endrow, limit, 
                                 offset, start_in, end_in) == expected

    expected = [{'c':{'c1':'7','c2':'8','c3':'9'}}]
    offset = 1
    assert self.cass.range_query(TEST5_TABLE, column_names,
                                 startrow, endrow, limit, 
                                 offset, start_in, end_in) == expected
dataset/ETHPy150Open AppScale/appscale/AppDB/test/functional/test_cassandra.py/RangeTestCase.runTest/operator `==` -> `is`