'Test the subrelation relation'

def test_9(self):

    from guppy import hpy
    ernames = ['Class', 'Clodo', 'Id', 'Idset', 'Module', 'Rcs', 'Size', 'Type', 'Unity']
    hp = hpy()
    ers = [(name, getattr(hp, name)) for name in ernames]
    ers.append(('Size&Type', (hp.Size & hp.Type)))
    from StringIO import StringIO
    f = StringIO()
    print >>f, ''.ljust(10),
    for b in ers:
        print >>f, b[0].ljust(7),
    print >>f
    for a in ers:
        print >>f, a[0].ljust(10),
        for b in ers:
            print >>f, str((a[1] < b[1]))[:1].ljust(7),
        print >>f
    self.aseq(f.getvalue(), '                                            Class            Clodo            Id                        Idset            Module        Rcs                    Size                Type                Unity            Size&Type\nClass                        F                            F                            F                            F                            F                            F                            F                            T                            T                            F                        \nClodo                        T                            F                            F                            F                            F                            F                            F                            T                            T                            F                        \nId                                    F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nIdset                        F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nModule                    F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nRcs                                F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nSize                            F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nType                            F                            F                            F                            F                            F                            F                            F                            F                            T                            F                        \nUnity                        F                            F                            F                            F                            F                            F                            F                            F                            F                            F                        \nSize&Type        F                            F                            F                            F                            F                            F                            T                            T                            T                            F                        \n')
