<s> from changes . testutils import APITestCase <EOL> class ClusterIndexTest ( APITestCase ) : <EOL> def test_simple ( self ) : <EOL> cluster_1 = self . create_cluster ( label = '<STR_LIT:bar>' ) <EOL> cluster_2 = self . create_cluster ( label = '<STR_LIT:foo>' ) <EOL> path = '<STR_LIT>' <EOL> resp = self . client . get ( path ) <EOL> assert resp . status_code == <NUM_LIT:200> <EOL> data = self . unserialize ( resp ) <EOL> assert len ( data ) == <NUM_LIT:2> <EOL> assert data [ <NUM_LIT:0> ] [ '<STR_LIT:id>' ] == cluster_1 . id . hex <EOL> assert data [ <NUM_LIT:1> ] [ '<STR_LIT:id>' ] == cluster_2 . id . hex </s>
