def test_blank(self):
     pattern = create_pattern(["A..K", "BC_"])
     self.assertEqual("A[A-Ż][A-Ż]K", pattern)
 def test_simplest_pattern(self):
     pattern = create_pattern(["A.", "A"])
     self.assertEqual("A[A]", pattern)
 def test_star(self):
     pattern = create_pattern(["A*", "AB"])
     self.assertEqual("A[AB]*", pattern)
 def test_dot_star_plus(self):
     pattern = create_pattern(["+A..E*", "DEFGHJS"])
     self.assertEqual("[DEFGHJS]+A[DEFGHJS][DEFGHJS]E[DEFGHJS]*", pattern)
 def test_plus_seven_digit(self):
     pattern = create_pattern(["A+B", "DEFGHJS"])
     self.assertEqual("A[DEFGHJS]+B", pattern)
 def test_plus(self):
     pattern = create_pattern(["A+", "AB"])
     self.assertEqual("A[AB]+", pattern)
 def test_two_dots_between(self):
     pattern = create_pattern(["A..D", "EFG"])
     self.assertEqual("A[EFG][EFG]D", pattern)
 def test_polish_letters(self):
     pattern = create_pattern(["A.", "ĄEC"])
     self.assertEqual("A[ĄEC]", pattern)
 def test_two_chars(self):
     pattern = create_pattern(["A.", "AB"])
     self.assertEqual("A[AB]", pattern)