コード例 #1
0
 def test_trailing_with_n_args_works(self):
     self.assertEqual(
         'another/path/segment/that runs on',
         client._trailing(self.template, 'servicesNS/', '/', '/'))
コード例 #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/'))
コード例 #3
0
 def test_no_args_is_identity(self):
     self.assertEqual(self.template, client._trailing(self.template))
コード例 #4
0
 def test_trailing_with_n_args_works(self):
     self.assertEqual(
         'another/path/segment/that runs on',
         client._trailing(self.template, 'servicesNS/', '/', '/')
     )
コード例 #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/'))
コード例 #6
0
 def test_no_args_is_identity(self):
     self.assertEqual(self.template, client._trailing(self.template))