Anders and Briegel in Python
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

16 lines
288B

  1. from abp import GraphState
  2. from abp import clifford
  3. from demograph import demograph
  4. import time
  5. import json
  6. def test_json_basic():
  7. """ Test that we can export to JSON """
  8. g = demograph()
  9. js = g.to_json()
  10. assert "edges" in js
  11. assert "nodes" in js
  12. json.loads(js)