def test_create_node_failed(self):
     self.mock_api_client(200)
     self.mock_node_create({}, 500)
     people = MarketingSitePeople()
     people_data = people._get_node_data(self.person)  # pylint: disable=protected-access
     with pytest.raises(PersonToMarketingException):
         people._create_node(self.api_client, people_data)  # pylint: disable=protected-access
 def test_create_node(self):
     self.mock_api_client(200)
     self.mock_node_create(self.expected_node, 201)
     people = MarketingSitePeople()
     data = people._create_node(self.api_client, {})  # pylint: disable=protected-access
     assert data == self.expected_node