Exemple #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)
Exemple #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)
Exemple #3
0
 def test_empty(self):
     self.assertEqual(interface.validateParams([{}]), False)
Exemple #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)
Exemple #5
0
 def test_empty(self):
     self.assertEqual(interface.validateParams([{}]), False)
Exemple #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)