old_contents: import unittest
  import pprint
  import sys
  from wikidataintegrator import wdi_core, wdi_fastrun, wdi_login
  
  __author__ = 'Sebastian Burgstaller-Muehlbacher'
  __license__ = 'AGPLv3'
  
  
  class TestItemCreation(unittest.TestCase):
  
      def test_new_item_creation(self):
          data = [
              wdi_core.WDString(value='test', prop_nr='P716'),
              wdi_core.WDString(value='test1', prop_nr='P76')
          ]
  
          item = wdi_core.WDItemEngine(item_name='dae', domain=None, data=data)
  
          pprint.pprint(item.get_wd_json_representation())
  
          if not item.get_wd_json_representation():
              raise ValueError
  
  
  
new_contents: import unittest
  from wikidataintegrator import wdi_core
  
  
  class TestItemCreation(unittest.TestCase):
      def test_new_item_creation(self):
          data = [
              wdi_core.WDString(value='test', prop_nr='P1'),
              wdi_core.WDString(value='test1', prop_nr='P2'),
              wdi_core.WDMath("xxx", prop_nr="P3"),
              wdi_core.WDExternalID("xxx", prop_nr="P4"),
              wdi_core.WDItemID("Q123", prop_nr="P5"),
              wdi_core.WDTime('+%Y-%m-%dT%H:%M:%SZ', "P6"),
              wdi_core.WDUrl("http://www.google.com", "P7"),
              wdi_core.WDMonolingualText("xxx", prop_nr="P8"),
              wdi_core.WDQuantity(5, prop_nr="P9"),
              wdi_core.WDQuantity(5, upper_bound=9, lower_bound=2, prop_nr="P10"),
              wdi_core.WDCommonsMedia("xxx", prop_nr="P11"),
              wdi_core.WDGlobeCoordinate(1.2345, 1.2345, 12, prop_nr="P12"),
              wdi_core.WDGeoShape("xxx", prop_nr="P13"),
              wdi_core.WDProperty("P123", "P14")
          ]
          core_props = set(["P{}".format(x) for x in range(20)])
  
          for d in data:
              item = wdi_core.WDItemEngine(item_name='dae', domain="szadf", data=[d], core_props=core_props)
              assert item.get_wd_json_representation()
              item = wdi_core.WDItemEngine(item_name='dae', domain="szadf", data=[d], core_props=set())
              assert item.get_wd_json_representation()
  
          item = wdi_core.WDItemEngine(item_name='dae', domain="szadf", data=data, core_props=core_props)
          assert item.get_wd_json_representation()
          item = wdi_core.WDItemEngine(item_name='dae', domain="szadf", data=data, core_props=set())
          assert item.get_wd_json_representation()
  
subject: add more tests for statement construction