Пример #1
0
 def test_no_parallel_edges(self):
     with self.assertRaises(ValueError):
         PrimitiveCell((1, 0, 0), (1, 0, 0), (0, 0, 1),
                       BravaisLattice.CUBIC)
Пример #2
0
 def test_edge_lengths_positive(self):
     with self.assertRaises(ValueError):
         PrimitiveCell((0, 0, 0), (0, 0, 0), (0, 0, 0),
                       BravaisLattice.CUBIC)