def test_homogeneous_3(self):
   x = self.x;
   y = self.y;
   z = self.z;
   true_mons = Set([x**3,y**3,z**3,x**2*y,x**2*z,y**2*x,y**2*z,z**2*x,z**2*y,x*y*z])
   mons = [mon for mon in monomials_of_order(3,self.poly_ring,[1,1,1])]
   self.assertEqual(true_mons,Set(mons))
 def test_non_homogeneous_4(self):
   x = self.x;
   y = self.y;
   z = self.z;
   true_mons = Set([x**4,x**2*y,x*z,y**2])
   mons = [mon for mon in monomials_of_order(4,self.poly_ring,[1,2,3])]
   self.assertEqual(true_mons,Set(mons))
 def test_zero(self):
   mons = [mon for mon in monomials_of_order(0,self.poly_ring,[1,1,1])]
   self.assertEqual(mons,[self.poly_ring.one()])