old_contents: """Test actions."""
  
  from gaphor import UML
  from gaphor.tests.testcase import TestCase
  from gaphor.UML.actions.action import ActionItem
  
  
  class ActionTestCase(TestCase):
      def test_action(self):
          """Test creation of actions."""
          self.create(ActionItem, UML.Action)
  
new_contents: """Test actions."""
  
  from gaphor import UML
  from gaphor.UML.actions.action import ActionItem
  
  
  def test_action(case):
      """Test creation of actions."""
      case.create(ActionItem, UML.Action)
  
subject: Convert gaphor/UML/actions/tests/test_action.py to pytest