def METHOD_NAME(self):
    source = Restrictions(min_length=2, max_length=10, format="base16")
    target = Restrictions(min_length=1, pattern=r"[A-Z]")
    target.merge(source)
    self.assertEqual(2, target.min_length)
    self.assertEqual(10, target.max_length)
    self.assertEqual(r"[A-Z]", target.pattern)
    self.assertEqual("base16", target.format)