@@ -432,6 +432,22 @@ def test_set_sequence_register_2(self):
432
432
[("A" , "E" ), ("B" , "F" ), ("A" , "D" ), ("C" , "F" ), ("B" , "E" )], [(c .res1 , c .res2 ) for c in contact_map1 ]
433
433
)
434
434
435
+ def test_set_sequence_register_3 (self ):
436
+ contact_map1 = ContactMap ("1" )
437
+ for comb in [(1 , 5 , 1.0 ), (2 , 6 , 1.0 ), (1 , 4 , 1.0 ), (3 , 6 , 1.0 ), (2 , 5 , 1.0 )]:
438
+ contact_map1 .add (Contact (* comb ))
439
+ contact_map1 .sequence = Sequence ("foo" , "ABCDE" )
440
+ with self .assertRaises (ValueError ):
441
+ contact_map1 .set_sequence_register ()
442
+
443
+ def test_set_sequence_register_4 (self ):
444
+ contact_map1 = ContactMap ("1" )
445
+ for comb in [(1 , 5 , 1.0 ), (6 , 3 , 1.0 ), (1 , 4 , 1.0 ), (3 , 2 , 1.0 ), (2 , 5 , 1.0 )]:
446
+ contact_map1 .add (Contact (* comb ))
447
+ contact_map1 .sequence = Sequence ("foo" , "ABCDE" )
448
+ with self .assertRaises (ValueError ):
449
+ contact_map1 .set_sequence_register ()
450
+
435
451
def test_match_1 (self ):
436
452
contact_map1 = ContactMap ("foo" )
437
453
for params in [(1 , 5 , 1.0 ), (1 , 6 , 1.0 ), (2 , 7 , 1.0 ), (3 , 5 , 1.0 ), (2 , 8 , 1.0 )]:
0 commit comments