def test_trailing_with_n_args_works(self): self.assertEqual( 'another/path/segment/that runs on', client._trailing(self.template, 'servicesNS/', '/', '/'))
def test_trailing_with_one_arg_works(self): self.assertEqual('boris/search/another/path/segment/that runs on', client._trailing(self.template, 'ervicesNS/'))
def test_no_args_is_identity(self): self.assertEqual(self.template, client._trailing(self.template))
def test_trailing_with_n_args_works(self): self.assertEqual( 'another/path/segment/that runs on', client._trailing(self.template, 'servicesNS/', '/', '/') )