Esempio n. 1
0
    def test_loop(self, ethane):
        from mbuild.formats.protobuf import read_pb2, write_pb2

        write_pb2(ethane, "ethane.pb2")
        proto = read_pb2("ethane.pb2")
        assert ethane.n_particles == proto.n_particles
        assert ethane.n_bonds == proto.n_bonds
        assert len(ethane.children) == len(proto.children)
Esempio n. 2
0
 def test_loop(self, ethane):
     write_pb2(ethane, 'ethane.pb2')
     proto = read_pb2('ethane.pb2')
     assert ethane.n_particles == proto.n_particles
     assert ethane.n_bonds == proto.n_bonds
     assert len(ethane.children) == len(proto.children)