예제 #1
0
 def test_plugins(self):
     p = SenpyPlugin({"name": "dummy", "version": 0})
     c = p.jsonld()
     assert "info" not in c
     assert "repo" not in c
     assert "params" not in c
     logging.debug("Framed: %s", c)
     assert "extra_params" in c
예제 #2
0
 def test_plugins(self):
     self.assertRaises(Error, SenpyPlugin)
     p = SenpyPlugin({"name": "dummy", "version": 0})
     c = p.jsonld()
     assert "info" not in c
     assert "repo" not in c
     assert "extra_params" in c
     logging.debug("Framed:")
     logging.debug(c)
     p.validate()
예제 #3
0
 def test_plugins(self):
     self.assertRaises(Error, SenpyPlugin)
     p = SenpyPlugin({"name": "dummy", "version": 0})
     c = p.jsonld()
     assert "info" not in c
     assert "repo" not in c
     assert "extra_params" in c
     logging.debug("Framed:")
     logging.debug(c)
     p.validate()