예제 #1
0
 def test___call___tuple_key_notation_param__existing_segments(self):
     a = TuplePath()
     a.segments = ["foo", "bar", "baz"]
     a(("k1", "k2", "k3"))
     self.assertEqual(a, ("k1", "k2", "k3"))
예제 #2
0
 def test___call___no_params__existing_segments(self):
     a = TuplePath()
     a.segments = ["foo", "bar", "baz"]
     a()
     self.assertEqual(a, ())