def test_valid(self): check_id('Base62string')
def test_umlaut(self): with self.assertRaises(ConversionError): check_id('withföreignlëtters')
def test_punctuation(self): with self.assertRaises(ConversionError): check_id('.')
def test_almost_b62(self): with self.assertRaises(ConversionError): check_id('almost-base62')
def test_empty(self): with self.assertRaises(ConversionError): check_id('')