Skip to content

Commit 41329be

Browse files
committed
TST: CIF with unknown atom_site_aniso block
1 parent b8fbfe3 commit 41329be

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/diffpy/structure/tests/testp_cif.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,19 @@ def test_adp_aniso_label(self):
365365
return
366366

367367

368+
@unittest.expectedFailure
369+
def test_unknown_aniso(self):
370+
"test CIF file with unknown values in the aniso block."
371+
with open(self.teiciffile) as fp:
372+
lines = fp.readlines()
373+
lines[-4:] = [' ? ? ? ? ? ? ?\n']
374+
ciftxt = ''.join(lines)
375+
stru = self.ptest.parse(ciftxt)
376+
self.assertEqual(16, len(stru))
377+
self.assertTrue(all(stru.anisotropy))
378+
return
379+
380+
368381
def test_curly_brace(self):
369382
"verify loading of a CIF file with unquoted curly brace"
370383
ptest = self.ptest

0 commit comments

Comments
 (0)