def test_should_ignore_not_a_list(self): fontcache = FontCache() self.assertEqual([], fontcache.get_backends())
def test_should_return_list_of_installed_backends(self): fontcache = FontCache() self.assertIn( GoogleFontsBackend, [backend.__class__ for backend in fontcache.get_backends()])