Ejemplo n.º 1
0
 def test_trailing_with_n_args_works(self):
     self.assertEqual(
         'another/path/segment/that runs on',
         client._trailing(self.template, 'servicesNS/', '/', '/'))
Ejemplo n.º 2
0
 def test_trailing_with_one_arg_works(self):
     self.assertEqual('boris/search/another/path/segment/that runs on',
                      client._trailing(self.template, 'ervicesNS/'))
Ejemplo n.º 3
0
 def test_no_args_is_identity(self):
     self.assertEqual(self.template, client._trailing(self.template))
Ejemplo n.º 4
0
 def test_trailing_with_n_args_works(self):
     self.assertEqual(
         'another/path/segment/that runs on',
         client._trailing(self.template, 'servicesNS/', '/', '/')
     )
Ejemplo n.º 5
0
 def test_trailing_with_one_arg_works(self):
     self.assertEqual('boris/search/another/path/segment/that runs on', client._trailing(self.template, 'ervicesNS/'))
Ejemplo n.º 6
0
 def test_no_args_is_identity(self):
     self.assertEqual(self.template, client._trailing(self.template))