def test_get_kpoints(self):
    kpoints = self.paramset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[2, 4, 6]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mitparamset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[2, 4, 6]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mpstaticparamset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[6, 6, 4]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mpnscfparamsetl.get_kpoints(self.struct)
    self.assertEqual(kpoints.num_kpts, 140)
    self.assertEqual(kpoints.style, 'Reciprocal')
    kpoints = self.mpnscfparamsetu.get_kpoints(self.struct)
    self.assertEqual(kpoints.num_kpts, 168)
    kpoints = self.mpbshseparamsetl.get_kpoints(self.struct)
    self.assertAlmostEqual(kpoints.num_kpts, 164)
    self.assertAlmostEqual(kpoints.kpts[10][0], 0.0)
    self.assertAlmostEqual(kpoints.kpts[10][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[10][2], 0.16666667)
    self.assertAlmostEqual(kpoints.kpts[26][0], 0.0714285714286)
    self.assertAlmostEqual(kpoints.kpts[26][1], 0.0)
    self.assertAlmostEqual(kpoints.kpts[26][2], 0.0)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][0], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][2], 0.5)
    kpoints = self.mpbshseparamsetu.get_kpoints(self.struct)
    self.assertAlmostEqual(kpoints.num_kpts, 25)
    self.assertAlmostEqual(kpoints.kpts[10][0], 0.0)
    self.assertAlmostEqual(kpoints.kpts[10][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[10][2], 0.16666667)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][0], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][2], 0.0)
def test_get_kpoints(self):
    kpoints = self.paramset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[2, 4, 6]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mitparamset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[2, 4, 6]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mpstaticparamset.get_kpoints(self.struct)
    self.assertEqual(kpoints.kpts, [[6, 6, 4]])
    self.assertEqual(kpoints.style, 'Monkhorst')
    kpoints = self.mpnscfparamsetl.get_kpoints(self.struct)
    self.assertEqual(kpoints.num_kpts, 140)
    self.assertEqual(kpoints.style, 'Reciprocal')
    kpoints = self.mpnscfparamsetu.get_kpoints(self.struct)
    self.assertEqual(kpoints.num_kpts, 168)
    kpoints = self.mpbshseparamsetl.get_kpoints(self.struct)
    self.assertAlmostEqual(kpoints.num_kpts, 164)
    self.assertAlmostEqual(kpoints.kpts[10][0], 0.0)
    self.assertAlmostEqual(kpoints.kpts[10][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[10][2], 0.16666667)
    self.assertAlmostEqual(kpoints.kpts[26][0], 0.0714285714286)
    self.assertAlmostEqual(kpoints.kpts[26][1], 0.0)
    self.assertAlmostEqual(kpoints.kpts[26][2], 0.0)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][0], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][2], 0.5)
    kpoints = self.mpbshseparamsetu.get_kpoints(self.struct)
    self.assertAlmostEqual(kpoints.num_kpts, 25)
    self.assertAlmostEqual(kpoints.kpts[10][0], 0.0)
    self.assertAlmostEqual(kpoints.kpts[10][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[10][2], 0.16666667)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][0], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][1], 0.5)
    self.assertAlmostEqual(kpoints.kpts[(- 1)][2], 0.0)