コード例 #1
0
 def test_valid(self):
     check_id('Base62string')
コード例 #2
0
 def test_umlaut(self):
     with self.assertRaises(ConversionError):
         check_id('withföreignlëtters')
コード例 #3
0
 def test_punctuation(self):
     with self.assertRaises(ConversionError):
         check_id('.')
コード例 #4
0
 def test_almost_b62(self):
     with self.assertRaises(ConversionError):
         check_id('almost-base62')
コード例 #5
0
 def test_empty(self):
     with self.assertRaises(ConversionError):
         check_id('')