Пример #1
0
    def get_common_layouts(self):
        """A list of common layouts"""

        return list(
            set(
                map(normalize_layout_variant,
                    localization.get_common_keyboard_layouts())).intersection(
                        set(self.get_available_layouts())))
Пример #2
0
 def test_common_keyboard_layouts(self):
     layouts = localization.get_common_keyboard_layouts()
     self.assertIn("us", layouts)
     self.assertIn("fr(oss)", layouts)
     self.assertIn("de(nodeadkeys)", layouts)
Пример #3
0
 def test_common_keyboard_layouts(self):
     layouts = localization.get_common_keyboard_layouts()
     assert "us" in layouts
     assert "fr(oss)" in layouts
     assert "de(nodeadkeys)" in layouts