Example #1
0
 def test_nowildcard(self):
     self.assertEquals({'1100'}, wildcard_pattern('1100', '?'))
Example #2
0
 def test_onlywildcard(self):
     self.assertEquals({'00', '01', '10', '11'},
                       wildcard_pattern('??', '?'))
Example #3
0
 def test_empty(self):
     self.assertEquals({''}, wildcard_pattern('', '?'))
Example #4
0
 def test_multiple_wildcard(self):
     self.assertEquals({'1100', '1101', '1001', '1000'},
                       wildcard_pattern('1?0?', '?'))