Commit 42e8c24b authored by MischaD's avatar MischaD
Browse files

Removed Deprecated Testcase

parent 154a1600
import unittest
from lbmweights.lattice import Lattice
class TestAnalyzeTensorDimensions(unittest.TestCase):
def setUp(self):
self.lattice2 = Lattice(dimension=2, order=2, shell_list=[1,2,4])
self.lattice4 = Lattice(dimension=2, order=4, shell_list=[1,2,4])
self.lattice6 = Lattice(dimension=2, order=6, shell_list=[1,2,4])
self.lattice8 = Lattice(dimension=2, order=8, shell_list=[1,2,4])
def test_analyze_tensor_dimensions(self):
self.lattice2.calculate_weights()
self.assertTrue(self.lattice2._possible_tensors == [[[2]]])
self.lattice4.calculate_weights()
self.assertTrue(self.lattice4._possible_tensors == [[[2]], [[4], [2,2]]])
self.lattice6.calculate_weights()
self.assertTrue(self.lattice6._possible_tensors == [[[2]], [[4], [2, 2]], [[6], [4,2],[2,2,2]]])
self.lattice8.calculate_weights()
self.assertTrue(self.lattice8._possible_tensors == [[[2]], [[4], [2, 2]], [[6], [4,2],[2,2,2]], [[8],[6,2],[4,4],[4,2,2],[2,2,2,2]]])
if __name__ == "__main__":
unittest.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment