Back to index

python-biopython  1.60
Public Member Functions
test_NNGene.SchemaMatchingTest Class Reference

List of all members.

Public Member Functions

def shortDescription
def runTest

Detailed Description

Matching schema to strings works correctly.

Definition at line 463 of file test_NNGene.py.


Member Function Documentation

Definition at line 469 of file test_NNGene.py.

00469 
00470     def runTest(self):
00471         match = Schema.matches_schema("GATC", "AAAAA")
00472         assert match == 0, "Expected no match because of length differences"
00473 
00474         match = Schema.matches_schema("GATC", "GAT*")
00475         assert match == 1, "Expected match"
00476 
00477         match = Schema.matches_schema("GATC", "GATC")
00478         assert match == 1, "Expected match"
00479 
00480         match = Schema.matches_schema("GATC", "C*TC")
00481         assert match == 0, "Expected no match because of char mismatch."
00482 
00483         match = Schema.matches_schema("G*TC", "*TTC")
00484         assert match == 1, "Expected match because of ambiguity."

Definition at line 466 of file test_NNGene.py.

00466 
00467     def shortDescription(self):
00468         return "%s:%s" % (self.__class__.__name__, self.__doc__)
    

The documentation for this class was generated from the following file: