Mercurial > code > home > repos > homeauto
diff service/mqtt_to_rdf/inference_test.py @ 1666:4fd9fdfcf16a
clean up dead tests
author | drewp@bigasterisk.com |
---|---|
date | Mon, 20 Sep 2021 23:20:46 -0700 |
parents | 1a7c1261302c |
children | 23beadd3e83a |
line wrap: on
line diff
--- a/service/mqtt_to_rdf/inference_test.py Mon Sep 20 23:19:40 2021 -0700 +++ b/service/mqtt_to_rdf/inference_test.py Mon Sep 20 23:20:46 2021 -0700 @@ -390,28 +390,3 @@ # inf = makeInferenceWithRules("{ :a :b (:e0 :e1 :e2 :e3) . } => { :new :stmt :here } .") # implied = inf.infer(N3(":a :b (:e0 :e1 :e2 :e3) .")) # self.assertGraphEqual(implied, N3(":new :stmt :here .")) - - -# def fakeStats(): -# return defaultdict(lambda: 0) - -# class TestLhsFindCandidateBindings(WithGraphEqual): - -# def testBnodeMatchesStmt(self): -# l = Lhs(N3("[] :a :b .")) -# ws = ReadOnlyGraphAggregate([N3("[] :a :b .")]) -# cands = list(l.findCandidateBindings(ws, fakeStats())) -# self.assertEqual(len(cands), 1) - -# def testVarMatchesStmt(self): -# l = Lhs(N3("?x :a :b .")) -# ws = ReadOnlyGraphAggregate([N3("[] :a :b .")]) -# cands = list(l.findCandidateBindings(ws, fakeStats())) -# self.assertEqual(len(cands), 1) - -# def testListsOnlyMatchEachOther(self): -# l = Lhs(N3(":a :b (:e0 :e1) .")) -# ws = ReadOnlyGraphAggregate([N3(":a :b (:e0 :e1) .")]) -# stats = fakeStats() -# cands = list(l.findCandidateBindings(ws, stats)) -# self.assertLess(stats['permCountFailingVerify'], 20) \ No newline at end of file