File: test_cell.py

package info (click to toggle)
spglib 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,180 kB
  • sloc: ansic: 125,066; python: 7,717; cpp: 2,197; f90: 2,143; ruby: 792; makefile: 22; sh: 18
file content (8 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
import pytest
from spglib.error import SpglibError
from spglib.utils import _expand_cell


def test_expand_cell():
    with pytest.raises(SpglibError, match="cell has to be a tuple of 3 or 4 elements."):
        _expand_cell(([], [], [], [], []))