def test_createCommonHeader(self): """create_commor_header should return lines for sff common header""" a = [Flowgram('0.5 1.0 4.0 0.0 1.5 0.0 0.0 2.0', Name='a', header_info = {'Bases':'TACCCCTTGG','Name Length':'14'}), Flowgram('1.5 1.0 0.0 0.0 2.5 1.0 2.0 1.0', Name = 'b', header_info = {'Bases':'TTATTTACCG','Name Length':'14'})] f = FlowgramCollection(a, header_info = {'Flow Chars':'TACG'}) self.assertEqual('\n'.join(f.createCommonHeader()), """Common Header:\n Flow Chars:\tTACG""")
def test_createCommonHeader(self): """create_commor_header should return lines for sff common header""" a = [ Flowgram( "0.5 1.0 4.0 0.0 1.5 0.0 0.0 2.0", Name="a", header_info={"Bases": "TACCCCTTGG", "Name Length": "14"} ), Flowgram( "1.5 1.0 0.0 0.0 2.5 1.0 2.0 1.0", Name="b", header_info={"Bases": "TTATTTACCG", "Name Length": "14"} ), ] f = FlowgramCollection(a, header_info={"Flow Chars": "TACG"}) self.assertEqual("\n".join(f.createCommonHeader()), """Common Header:\n Flow Chars:\tTACG""")