Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Tests/test_NNGene.py   biopython(Download)
    def runTest(self):
        match = Schema.matches_schema("GATC", "AAAAA")
        self.assertEqual(match, 0,
                         "Expected no match because of length differences")
 
        match = Schema.matches_schema("GATC", "GAT*")
        self.assertEqual(match, 1,
                         "Expected match")
 
        match = Schema.matches_schema("GATC", "GATC")
                         "Expected match")
 
        match = Schema.matches_schema("GATC", "C*TC")
        self.assertEqual(match, 0,
                         "Expected no match because of char mismatch.")
 
        match = Schema.matches_schema("G*TC", "*TTC")

src/b/i/biopython-HEAD/Tests/test_NNGene.py   biopython(Download)
    def runTest(self):
        match = Schema.matches_schema("GATC", "AAAAA")
        self.assertEqual(match, 0,
                         "Expected no match because of length differences")
 
        match = Schema.matches_schema("GATC", "GAT*")
        self.assertEqual(match, 1,
                         "Expected match")
 
        match = Schema.matches_schema("GATC", "GATC")
                         "Expected match")
 
        match = Schema.matches_schema("GATC", "C*TC")
        self.assertEqual(match, 0,
                         "Expected no match because of char mismatch.")
 
        match = Schema.matches_schema("G*TC", "*TTC")