def test_la_trappe(self):
        beer_list = [
            {'name': u'La Trappe Witte Trappist'},
            {'name': u'La Trappe Blond'},
            {'name': u'La Trappe Isid’or'},
            {'name': u'La Trappe Tripel'},
            {'name': u'La Trappe Bockbier'},
            {'name': u'La Trappe Dubbel'},
        ]

        matcher = BeerNameMatcher(u'De Koningshoeven (Bavaria - Netherlands)', beer_list)

        matched = matcher.match_name(u'La Trappe Blond Trappist')
        self.assertEqual(u'La Trappe Blond', matched['name'])

        matched = matcher.match_name(u'La Trappe Isid\'or Trappist')
        self.assertEqual(u'La Trappe Isid’or', matched['name'])

        matched = matcher.match_name(u'La Trappe Tripel Trappist ')
        self.assertEqual(u'La Trappe Tripel', matched['name'])

        matched = matcher.match_name(u'La Trappe Dubbel Trappist')
        self.assertEqual(u'La Trappe Dubbel', matched['name'])

        matched = matcher.match_name(u'La Trappe Bockbier Trappistenbier')
        self.assertEqual(u'La Trappe Bockbier', matched['name'])
 def test_dunkles_weizen(self):
     beer_list = [
         {'name': u'Coisbo Pinnekjøttøl Dunkles Weizen'}
     ]
     matcher = BeerNameMatcher(u'Coisbo Beer', beer_list)
     matched = matcher.match_name(u'Coisbo Weissbier Pinnekjøt-øl')
     self.assertEqual(u'Coisbo Pinnekjøttøl Dunkles Weizen', matched['name'])
 def test_hop_it(self):
     beer_list = [
         {'name': u'Urthel Hop-it'}
     ]
     matcher = BeerNameMatcher(u'Microbrouwerij Urthel', beer_list)
     matched = matcher.match_name(u'Urthel Hop-It Superior Hoppig Blond')
     self.assertEqual(u'Urthel Hop-it', matched['name'])
 def test_soy_rodriguez(self):
     beer_list = [
         {'name': u'Edge Brewing Soy Rodríguez', 'abv': 5.3}
     ]
     matcher = BeerNameMatcher(u'Edge Brewing Barcelona', beer_list)
     matched = matcher.match_name(u'Edge Soy Rodriguez Rye IPA')
     self.assertEqual(u'Edge Brewing Soy Rodríguez', matched['name'])
 def test_vuur_vlam(self):
     beer_list = [
         {'name': u'De Molen Vuur & Vlam (Fire & Flames)'}
     ]
     matcher = BeerNameMatcher(u'Brouwerij de Molen', beer_list)
     matched = matcher.match_name(u'Brouwerij de Molen Vuur Vlam')
     self.assertEqual(u'De Molen Vuur & Vlam (Fire & Flames)', matched['name'])
 def test_amber_brewery(self):
     beer_list = [
         {'name': u'Amber Złote Lwy'}
     ]
     matcher = BeerNameMatcher(u'Browar Amber', beer_list)
     matched = matcher.match_name(u'Zlote LWY Lys')
     self.assertEqual(u'Amber Złote Lwy', matched['name'])
 def test_red_hopster(self):
     beer_list = [
         {'name': u'Lindheim Red Hopster'}
     ]
     matcher = BeerNameMatcher(u'Lindheim Ølkompani', beer_list)
     matched = matcher.match_name(u'Lindheim Red Hopster Imperial Red Ale')
     self.assertEqual(u'Lindheim Red Hopster', matched['name'])
 def test_semicolon(self):
     beer_list = [
         {'name': u'Fantôme Artist: Gaelle Boulanger'}
     ]
     matcher = BeerNameMatcher(u'Brasserie Fantôme ', beer_list)
     matched = matcher.match_name(u'Fantome Artist')
     self.assertEqual(u'Fantôme Artist: Gaelle Boulanger', matched['name'])
 def test_borgo(self):
     beer_list = [
         {'name': u'Birra del Borgo Re Ale'}
     ]
     matcher = BeerNameMatcher(u'Birra del Borgo', beer_list)
     matched = matcher.match_name(u'Birra del Borga ReAle')
     self.assertEqual(u'Birra del Borgo Re Ale', matched['name'])
 def test_hanssens(self):
     beer_list = [
         {'name': u'Hanssens Oude Schaarbeekse Kriek'}
     ]
     matcher = BeerNameMatcher(u'Hanssens Artisanaal', beer_list)
     matched = matcher.match_name(u'Hanssens Oude Kriek Handgeplukte Schaerbeekske Krieken')
     self.assertEqual(u'Hanssens Oude Schaarbeekse Kriek', matched['name'])
 def test_sorting(self):
     beer_list = [
         {'name': u'CAP Jernteppet Hammerfest'}
     ]
     matcher = BeerNameMatcher(u'CAP Brewery', beer_list)
     matched = matcher.match_name(u'CAP Hammerfest Jernteppet Pale Ale')
     self.assertEqual(u'CAP Jernteppet Hammerfest', matched['name'])
 def test_oyster_stout(self):
     beer_list = [
         {'name': u'Ægir / Garage Project First Wave'}
     ]
     matcher = BeerNameMatcher(u'Ægir Bryggeri', beer_list)
     matched = matcher.match_name(u'Garage Project/Ægir Bryggeri First Wave Oyster Stout')
     self.assertEqual(u'Ægir / Garage Project First Wave', matched['name'])
 def test_lagerol(self):
     beer_list = [
         {'name': u'Rådanäs Lageröl'}
     ]
     matcher = BeerNameMatcher(u'Rådanäs Bryggeri', beer_list)
     matched = matcher.match_name(u'Rådanäs Lager')
     self.assertEqual(u'Rådanäs Lageröl', matched['name'])
 def test_marstons(self):
     beer_list = [
         {'name': u'Marstons Old Empire (Bottle)'}
     ]
     matcher = BeerNameMatcher(u'Marstons', beer_list)
     matched = matcher.match_name(u'Marston\'s Old Empire IPA')
     self.assertEqual(u'Marstons Old Empire (Bottle)', matched['name'])
 def test_apostrophe(self):
     beer_list = [
         {'name': u'Fuller’s 1845'}
     ]
     matcher = BeerNameMatcher(u'Fuller’s', beer_list)
     matched = matcher.match_name(u'Fuller`s 1845')
     self.assertEqual(u'Fuller’s 1845', matched['name'])
 def test_herb(self):
     beer_list = [
         {'name': u'Szigeti Beer'}
     ]
     matcher = BeerNameMatcher(u'Sektkellerei Gebrüder Szigeti', beer_list)
     matched = matcher.match_name(u'Szigeti Beer Herb')
     self.assertEqual(u'Szigeti Beer', matched['name'])
 def test_electric_nurse(self):
     beer_list = [
         {'name': u'Electric Nurse DIPA'}
     ]
     matcher = BeerNameMatcher(u'Dugges Ale & Porterbryggeri', beer_list)
     matched = matcher.match_name(u'Electric Nurse DIPA')
     self.assertEqual(u'Electric Nurse DIPA', matched['name'])
 def test_spaces(self):
     beer_list = [
         {'name': u'Beer Here Angry Hops'}
     ]
     matcher = BeerNameMatcher(u'Beer Here', beer_list)
     matched = matcher.match_name(u'Beerhere Angry Hops IPA')
     self.assertEqual(u'Beer Here Angry Hops', matched['name'])
 def test_ambree(self):
     beer_list = [
         {'name': u'Abbaye des Rocs La Montagnarde (Ambree)'}
     ]
     matcher = BeerNameMatcher(u'Brasserie de l’Abbaye des Rocs', beer_list)
     matched = matcher.match_name(u'Abbaye des Rocs Montagnarde')
     self.assertEqual(u'Abbaye des Rocs La Montagnarde (Ambree)', matched['name'])
 def test_fantome(self):
     beer_list = [
         {'name': u'Fantôme India Red Ale (IRA)'}
     ]
     matcher = BeerNameMatcher(u'Brasserie Fantôme', beer_list)
     matched = matcher.match_name(u'Brasserie Fantome India Red Ale')
     self.assertEqual(u'Fantôme India Red Ale (IRA)', matched['name'])
 def test_barrels(self):
     beer_list = [
         {'name': u'Nøgne Ø Imperial Stout (Whisky barrel edition)'}
     ]
     matcher = BeerNameMatcher(u'Nøgne Ø (Hansa Borg)', beer_list)
     matched = matcher.match_name(u'Nøgne Ø Imperial Stout Whisky Barrels')
     self.assertEqual(u'Nøgne Ø Imperial Stout (Whisky barrel edition)', matched['name'])
 def test_pater(self):
     beer_list = [
         {'name': u'Corsendonk Pater / Abbey Brown Ale'}
     ]
     matcher = BeerNameMatcher(u'Brouwerij Corsendonk', beer_list)
     matched = matcher.match_name(u'Corsendonk Pater Dubbel')
     self.assertEqual(u'Corsendonk Pater / Abbey Brown Ale', matched['name'])
 def test_mack_gull(self):
     beer_list = [
         {'name': u'Mack Gull'}
     ]
     matcher = BeerNameMatcher(u'Mack Bryggeri', beer_list)
     matched = matcher.match_name(u'GullMack')
     self.assertEqual(u'Mack Gull', matched['name'])
 def test_messy_rye(self):
     beer_list = [
         {'name': u'Nøisom Messy Rye'}
     ]
     matcher = BeerNameMatcher(u'Nøisom Craft Beer', beer_list)
     matched = matcher.match_name(u'Nøisom Messy Rye Rug IPA')
     self.assertEqual(u'Nøisom Messy Rye', matched['name'])
 def test_samuel_smith(self):
     beer_list = [
         {'name': u'Samuel Smiths Taddy Porter'}
     ]
     matcher = BeerNameMatcher(u'Samuel Smith', beer_list)
     matched = matcher.match_name(u'Samuel Smith Famous Taddy Porter')
     self.assertEqual(u'Samuel Smiths Taddy Porter', matched['name'])
 def test_premium_pils(self):
     beer_list = [
         {'name': u'Lederer Premium Pils'}
     ]
     matcher = BeerNameMatcher(u'Tucher Bräu Fürth (Oetker Group)', beer_list)
     matched = matcher.match_name(u'Lederer Pils')
     self.assertEqual(u'Lederer Premium Pils', matched['name'])
 def test_batch_500(self):
     beer_list = [
         {'name': u'Nøgne Ø # 500 Imperial India Pale Ale (Batch 500)'}
     ]
     matcher = BeerNameMatcher(u'Nøgne Ø (Hansa Borg)', beer_list)
     matched = matcher.match_name(u'Nøgne Ø Imperial India Pale Ale #500')
     self.assertEqual(u'Nøgne Ø # 500 Imperial India Pale Ale (Batch 500)', matched['name'])
 def test_mini_keg(self):
     beer_list = [
         {'name': u'Früh Kölsch'}
     ]
     matcher = BeerNameMatcher(u'Cölner Hofbräu P. Josef Früh', beer_list)
     matched = matcher.match_name(u'Früh Kölsch Mini Keg')
     self.assertEqual(u'Früh Kölsch', matched['name'])
 def test_white_pony(self):
     beer_list = [
         {'name': u'White Pony Zumbi'}
     ]
     matcher = BeerNameMatcher(u'White Pony Microbirrificio', beer_list)
     matched = matcher.match_name(u'White Pony Zumbi Imperial Porter Ale')
     self.assertEqual(u'White Pony Zumbi', matched['name'])
 def test_seasonal(self):
     beer_list = [
         {'name': u'Mohawk Whiteout Imperial Stout'}
     ]
     matcher = BeerNameMatcher(u'Mohawk Brewing Company', beer_list)
     matched = matcher.match_name(u'Mohawk Whiteout Seasonal Imperial Stout')
     self.assertEqual(u'Mohawk Whiteout Imperial Stout', matched['name'])