Exemple #1
0
 def test_cached (self):
     assert_identical(
         UpstreamEntity.cached("1"),
         UpstreamEntity.cached("1"))
     assert_not_identical(
         UpstreamEntity.cached("1"),
         UpstreamEntity.cached("2"))
Exemple #2
0
 def test_fetch_identity (self):
     assert_identical(
         UpstreamEntity.fetch("one"),
         UpstreamEntity.fetch("one"))
     assert_not_identical(
         UpstreamEntity.fetch("one"),
         UpstreamEntity.fetch("two"))