def test_set_name(self):
     annotation = arguments.NamedArgument()
     assert annotation.name is None
     annotation.name = "name"
     assert annotation.name == "name"
 def test_set_name_with_name_already_set(self):
     annotation = arguments.NamedArgument("name")
     with pytest.raises(AttributeError):
         annotation.name = "new name"
 def test_name(self):
     assert arguments.NamedArgument("name").name == "name"