Exemple #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
Exemple #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()
Exemple #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()