def test_error_if_lattice_parameter_missing_from_dict(self):
     lattice_parameters = {"a": 4.99, "c": 17.002,
                           "alpha": 90, "beta": 90, "gamma": 120}
     with pytest.raises(ValueError) as exception_info:
         DirectLattice.from_dict(lattice_parameters)
     assert str(exception_info.value) == "Parameter: 'b' missing from input dictionary"
    def test_can_create_crystal_from_dictionary(self):
        lattice_parameters = {"a": 4.99, "b": 4.99, "c": 17.002,
                              "alpha": 90, "beta": 90, "gamma": 120}
        lattice = DirectLattice.from_dict(lattice_parameters)

        assert lattice.lattice_parameters == CALCITE_LATTICE_PARAMETERS