Beispiel #1
0
 def test_comment_stripping(self):
     # https://github.com/ioerror/blockfinder/issues/51
     self.assertEqual(normalize_country_code('EU'), 'EU')
     self.assertEqual(
         normalize_country_code('EU # Country is really world wide'), 'EU')
     self.assertEqual(normalize_country_code('DE #AT # IT'), 'DE')
     self.assertEqual(normalize_country_code('FR # GF # GP # MQ # RE'),
                      'FR')
Beispiel #2
0
 def test_comment_stripping(self):
     # https://github.com/ioerror/blockfinder/issues/51
     self.assertEqual(normalize_country_code('EU'), 'EU')
     self.assertEqual(normalize_country_code(
         'EU # Country is really world wide'), 'EU')
     self.assertEqual(normalize_country_code(
         'DE #AT # IT'), 'DE')
     self.assertEqual(normalize_country_code(
         'FR # GF # GP # MQ # RE'), 'FR')
Beispiel #3
0
 def test_capitalization(self):
     # https://github.com/ioerror/blockfinder/issues/53
     self.assertEqual(normalize_country_code('ro'), 'RO')
     self.assertEqual(normalize_country_code('RO'), 'RO')
     self.assertEqual(normalize_country_code(''), '')
Beispiel #4
0
 def test_capitalization(self):
     # https://github.com/ioerror/blockfinder/issues/53
     self.assertEqual(normalize_country_code('ro'), 'RO')
     self.assertEqual(normalize_country_code('RO'), 'RO')
     self.assertEqual(normalize_country_code(''), '')