def setUp(self):
        """ PREREQUISITES """
        PlanAdapter.create_table()
        ServiceTypeAdapter.create_table()
        PlanServiceTypeAdapter.create_table()
        # ManifestAdapter.create_table()
        self.service = ServiceTypeAdapter.sample_model('instance1')
        ServiceTypeAdapter.save(self.service)

        Adapter.create_table()
        self.test_model = Adapter.sample_model('instance1')
        self.id_name = Adapter.get_id(self.test_model)
        _, self.result = SQLStore.add_service_instance(self.test_model)
 def test_add_instance_existing(self, mock_exists):
     mock_exists.return_value = True
     _, result = SQLStore.add_service_instance(self.test_model)
     self.assertEqual(result, 409, msg='Assert Instance Already Exists')