Esempio n. 1
0
 def test_roundtrip(self):
     now = str(datetime.now())
     version = "0.0.1"
     env = Environment(now, version)
     env_as_json = env.to_json()
     env_from_json = Environment.from_json(env_as_json)
     assert env.__dict__ == env_from_json.__dict__
Esempio n. 2
0
 def test_serialize(self):
     env = Environment()
     env_as_json = env.to_json()
     env_from_json = Environment.from_json(env_as_json)
     assert env.__dict__ == env_from_json.__dict__
Esempio n. 3
0
 def test_serialize(self):
     env = Environment()
     env_as_json = env.to_json()
     env_from_json = Environment.from_json(env_as_json)
     assert env.__dict__ == env_from_json.__dict__
Esempio n. 4
0
 def test_roundtrip(self):
     env = Environment()
     env_as_json = env.to_json()
     env_from_json = Environment.from_json(env_as_json)
     assert env.__dict__ == env_from_json.__dict__