'Tests that models can be saved and retrieved'

def test_clustering_order_more_complex(self):

    sync_table(TestClusteringComplexModel)
    items = list(range(20))
    random.shuffle(items)
    for i in items:
        TestClusteringComplexModel.create(id=1, clustering_key=i, some_value=2)
    values = list(TestClusteringComplexModel.objects.values_list('some_value', flat=True))
    self.assertEqual(([2] * 20), values)
    drop_table(TestClusteringComplexModel)
