<s> """<STR_LIT>""" <EOL> import unittest <EOL> from pyproct . clustering . clustering import Clustering <EOL> from pyproct . clustering . cluster import Cluster <EOL> from pyRMSD . condensedMatrix import CondensedMatrix <EOL> from pyproct . clustering . evaluation . metrics . cython . graph . tools import get_cluster_and_complementary <EOL> class TestGraphMetrics ( unittest . TestCase ) : <EOL> def test_getClusterAndComplementary ( self ) : <EOL> clustering = Clustering ( [ Cluster ( <NUM_LIT:1> , range ( <NUM_LIT:5> ) ) , Cluster ( <NUM_LIT:5> , range ( <NUM_LIT:5> , <NUM_LIT:10> ) ) , Cluster ( <NUM_LIT:10> , range ( <NUM_LIT:10> , <NUM_LIT:20> ) ) ] ) <EOL> A , Acomp = get_cluster_and_complementary ( <NUM_LIT:1> , clustering . clusters ) <EOL> A . sort ( ) <EOL> Acomp . sort ( ) <EOL> self . assertItemsEqual ( A , [ <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:4> ] ) <EOL> self . assertItemsEqual ( Acomp , [ <NUM_LIT:5> , <NUM_LIT:6> , <NUM_LIT:7> , <NUM_LIT:8> , <NUM_LIT:9> , <NUM_LIT:10> , <NUM_LIT:11> , <NUM_LIT:12> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:15> , <NUM_LIT:16> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
