def test_rdkit_round_trip(self):
    'Test conversion to and from RDKitMol'
    for mol in self.test_mols:
        rdkit_mol = to_rdkit_mol(mol)
        new_mol = from_rdkit_mol(Molecule(), rdkit_mol)
        self.assertTrue((mol.is_isomorphic(new_mol) or self.test_Hbond_free_mol.is_isomorphic(new_mol)))
        self.assertEqual(mol.get_element_count(), new_mol.get_element_count())
Test conversion to and from RDKitMol
def test_rdkit_round_trip(self):
    
    for mol in self.test_mols:
        rdkit_mol = to_rdkit_mol(mol)
        new_mol = from_rdkit_mol(Molecule(), rdkit_mol)
        self.assertTrue((mol.is_isomorphic(new_mol) or self.test_Hbond_free_mol.is_isomorphic(new_mol)))
        self.assertEqual(mol.get_element_count(), new_mol.get_element_count())