code: def test_AlternatingGroup():
      G = AlternatingGroup(5)
      elements = list(G.generate())
      assert len(elements) == 60
      assert [perm.is_even for perm in elements] == [True] * 60
      H = AlternatingGroup(1)
      assert H.order() == 1
      L = AlternatingGroup(2)
      assert L.order() == 1
  
file_path: sympy/sympy/combinatorics/tests/test_named_groups.py
imports: from sympy.combinatorics.named_groups import SymmetricGroup, CyclicGroup, DihedralGroup, AlternatingGroup, AbelianGroup, RubikGroup
  from sympy.testing.pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_AlternatingGroup() without return types