示例#1
0
    def test_outbound_deps_should_return_needed_service(self):
        self.bar_service.needs = ['service://foobar42/bazservice']

        self.assertEqual(
            outbound_deps_on_same_host(self.bar_service, self.components), ['service://foobar42/bazservice'])
示例#2
0
    def test_should_compute_outbound_deps_recursively(self):
        self.bar_service.needs = ['service://foobar42/bazservice']
        self.baz_service.needs = ['service://foobar42/ackservice']

        self.assertEqual(outbound_deps_on_same_host(self.bar_service, self.components), [
                         'service://foobar42/bazservice', 'service://foobar42/ackservice'])
示例#3
0
 def test_outbound_deps_should_return_empty_list_when_service_needs_nothing(self):
     self.assertEqual(outbound_deps_on_same_host(
         self.bar_service, self.components), [])