def test_create_success(self): world = World('new', '/mediafiles/campaigns/campaign_name/file.jpg', 1, 1, 1, 1) world.id = 2 world = world.to_dict() del world['campaign'] response = self.create_world(self.DEFAULT_TOKEN, 'new', 'file.jpg', 1, 1, 1, 1) self.assertEqual(response.status_code, 201) json = response.get_json() self.assertDictContainsSubset(world, json)