File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
src/diffpy/structure/tests Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+ ##############################################################################
3+ #
4+ # diffpy.structure Complex Modeling Initiative
5+ # (c) 2019 Brookhaven Science Associates,
6+ # Brookhaven National Laboratory.
7+ # All rights reserved.
8+ #
9+ # File coded by: Pavol Juhas
10+ #
11+ # See AUTHORS.txt for a list of people who contributed.
12+ # See LICENSE.txt for license information.
13+ #
14+ ##############################################################################
15+
16+ """Unit tests for diffpy.structure.spacegroups
17+ """
18+
19+
20+ import unittest
21+
22+ from diffpy .structure .spacegroups import SpaceGroupList , _hashSymOpList
23+
24+ # ----------------------------------------------------------------------------
25+
26+ class TestRoutines (unittest .TestCase ):
27+
28+ def setUp (self ):
29+ return
30+
31+
32+ def test__hashSymOpList (self ):
33+ "verify _hashSymOpList is unique for each spacegroup"
34+ hset = set (_hashSymOpList (sg .symop_list ) for sg in SpaceGroupList )
35+ self .assertEqual (len (SpaceGroupList ), len (hset ))
36+ return
37+
38+ # End of class TestRoutines
39+
40+ # ----------------------------------------------------------------------------
41+
42+ if __name__ == '__main__' :
43+ unittest .main ()
You can’t perform that action at this time.
0 commit comments