# Start container
        #print 'instantiating container'
        self._start_container()
        #container = Container()
        #print 'starting container'
        #container.start()
        #print 'started container'

        self.container.start_rel_from_url('res/deploy/r2deploy.yml')
        self.RR = ResourceRegistryServiceClient(node=self.container.node)
        
        print 'started services'

    
    @unittest.skip('this test just for debugging setup')
    def test_just_the_setup(self):
        return




rimi = ResourceImplMetatestIntegration(TestObservatoryManagementServiceMeta, ObservatoryManagementService, log)
rimi.test_all_in_one(True)

rimi.add_resource_impl_inttests(ObservatoryImpl, {})
rimi.add_resource_impl_inttests(SubsiteImpl, {})
rimi.add_resource_impl_inttests(PlatformSiteImpl, {})
rimi.add_resource_impl_inttests(InstrumentSiteImpl, {})


        #container.start()
        #print 'started container'

        self.container.start_rel_from_url('res/deploy/r2deploy.yml')
        self.RR = ResourceRegistryServiceClient(node=self.container.node)

        print 'started services'

    @unittest.skip('this test just for debugging setup')
    def test_just_the_setup(self):
        return


rimi = ResourceImplMetatestIntegration(TestInstrumentManagementServiceMeta,
                                       InstrumentManagementService, log)
rimi.test_all_in_one(True)

rimi.add_resource_impl_inttests(InstrumentAgentInstanceImpl,
                                {"exchange_name": "rhubarb"})
rimi.add_resource_impl_inttests(InstrumentAgentImpl, {
    "agent_version": "3",
    "time_source": "the universe"
})
rimi.add_resource_impl_inttests(InstrumentDeviceImpl, {
    "serial_number": "123",
    "firmware_version": "x"
})
rimi.add_resource_impl_inttests(InstrumentModelImpl,
                                {"model_label": "redundant?"})
rimi.add_resource_impl_inttests(PlatformAgentInstanceImpl,
                                {"exchange_name": "sausage"})