Exemplo n.º 1
0
 def test_full(self):
     fullParams = [{
         "zoneLength": 64,
         "t": 1.0,
         "tc": 0.1,
         "beta": 1.0,
         "x": 0.1,
         "J": 0.25
     }]
     self.assertEqual(interface.validateParams(fullParams), True)
     fullParams.append(fullParams[0])
     self.assertEqual(interface.validateParams(fullParams), True)
Exemplo n.º 2
0
 def test_almost_full(self):
     almostFullParams = [{
         "t": 1.0,
         "tc": 0.1,
         "beta": 1.0,
         "x": 0.1,
         "J": 0.25
     }]
     self.assertEqual(interface.validateParams(almostFullParams), False)
Exemplo n.º 3
0
 def test_empty(self):
     self.assertEqual(interface.validateParams([{}]), False)
Exemplo n.º 4
0
 def test_full(self):
     fullParams = [{"zoneLength": 64, "t": 1.0, "tc": 0.1, "beta": 1.0, "x": 0.1, "J": 0.25}]
     self.assertEqual(interface.validateParams(fullParams), True)
     fullParams.append(fullParams[0])
     self.assertEqual(interface.validateParams(fullParams), True)
Exemplo n.º 5
0
 def test_empty(self):
     self.assertEqual(interface.validateParams([{}]), False)
Exemplo n.º 6
0
 def test_almost_full(self):
     almostFullParams = [{"t": 1.0, "tc": 0.1, "beta": 1.0, "x": 0.1, "J": 0.25}]
     self.assertEqual(interface.validateParams(almostFullParams), False)