old_contents: from random import randint
  from tests.sharepoint_case import SPTestCase
  
  
  class TestListItem(SPTestCase):
      target_list = None
  
      def setUp(self):
          self.target_list = self.context.web.lists.get_by_title("Tasks")
  
      def test_create_list_item(self):
          item_properties = {'Title': 'New Task', '__metadata': {'type': 'SP.Data.TasksListItem'}}
          item = self.target_list.add_item(item_properties)
          self.context.execute_query()
          print "List item '{0}' has been created.".format(item.properties["Title"])
  
new_contents: from random import randint
  from tests.sharepoint_case import SPTestCase
  from nose.tools import nottest
  
  
  class TestListItem(SPTestCase):
      target_list = None
  
      def setUp(self):
          self.target_list = self.context.web.lists.get_by_title("Tasks")
  
      @nottest
      def test_create_list_item(self):
          item_properties = {'Title': 'New Task', '__metadata': {'type': 'SP.Data.TasksListItem'}}
          item = self.target_list.add_item(item_properties)
          self.context.execute_query()
          print "List item '{0}' has been created.".format(item.properties["Title"])
  
subject: disable defunct test