def test_services_that_run_on_should_properly_read_configuration(self): expected = ['fake_service1', 'fake_service2'] fake_hostname = 'fake_hostname2' fake_service_configuration = self.fake_service_configuration actual = service_configuration_lib.services_that_run_on( fake_hostname, fake_service_configuration) T.assert_sorted_equal(expected, actual)
def test_services_that_run_on_should_return_an_empty_array_when_the_hostname_isnt_anywhere( self): expected = [] fake_hostname = 'non_existent_fake_hostname2' fake_service_configuration = self.fake_service_configuration actual = service_configuration_lib.services_that_run_on( fake_hostname, fake_service_configuration) T.assert_sorted_equal(expected, actual)