def test_cmpByName(self): """Flowgrams should be the same if name, bases, or to_seqs are equal""" f = Flowgram('0.5 1.0 4.0 0.0', Name = 'a',floworder = "TACG", header_info = {'Bases':'TACCCC'}) f2 = Flowgram('0.5 1.0 4.0 0.0', Name = 'a',floworder = "TACG", header_info = {'Bases':'TACCCC'}) self.assertEqual(f.cmpByName(f2), 0) self.assertEqual(f.cmpByName(f), 0) f2 = Flowgram('0.5 1.0 4.0 0.0', Name = 'b',floworder = "TACG", header_info = {'Bases':'TACCCC'}) self.assertNotEqual(f.cmpByName(f2), 0)
def test_cmpByName(self): """Flowgrams should be the same if name, bases, or to_seqs are equal""" f = Flowgram('0.5 1.0 4.0 0.0', Name='a', floworder="TACG", header_info={'Bases': 'TACCCC'}) f2 = Flowgram('0.5 1.0 4.0 0.0', Name='a', floworder="TACG", header_info={'Bases': 'TACCCC'}) self.assertEqual(f.cmpByName(f2), 0) self.assertEqual(f.cmpByName(f), 0) f2 = Flowgram('0.5 1.0 4.0 0.0', Name='b', floworder="TACG", header_info={'Bases': 'TACCCC'}) self.assertNotEqual(f.cmpByName(f2), 0)