def test_default_font_override_he(self):
     image = Image.new("RGB", (2000, 4000))
     draw = ImageDraw.Draw(image)
     tbd = TextBoxDrawer(image, draw)
     with translation.override("he"):
         self.assertEqual(tbd.get_default_font(),
                          "static/fonts/OpenSansHebrew-Regular.ttf")
 def test_default_font_override_ar(self):
     image = Image.new("RGB", (2000, 4000))
     draw = ImageDraw.Draw(image)
     tbd = TextBoxDrawer(image, draw)
     with translation.override("ar"):
         self.assertEqual(tbd.get_default_font(),
                          "static/fonts/DejaVuSans.ttf")
 def test_default_font_override_ja(self):
     image = Image.new("RGB", (2000, 4000))
     draw = ImageDraw.Draw(image)
     tbd = TextBoxDrawer(image, draw)
     with translation.override("ja"):
         self.assertEqual(tbd.get_default_font(),
                          "static/fonts/NotoSansCJKjp-Regular.otf")