update lammps shell test to use a fix that is always available

This commit is contained in:
Axel Kohlmeyer
2021-07-29 17:44:29 -04:00
parent 5cdf55937d
commit 6b20da7549

View File

@ -94,25 +94,25 @@ class LammpsShell(unittest.TestCase):
def testExpandComputeGroup(self): def testExpandComputeGroup(self):
"""Test expansion of a group-ID and a compute command""" """Test expansion of a group-ID and a compute command"""
matches = re.findall(cmd_group_re, self.InputRunner(b'compute test al\tcentro/at\t\n'), re.MULTILINE) matches = re.findall(cmd_group_re, self.InputRunner(b'compute test al\tstress/at\t\n'), re.MULTILINE)
if self.timeout: if self.timeout:
self.fail("Timeout") self.fail("Timeout")
else: else:
self.assertEqual(matches[0][1],"compute") self.assertEqual(matches[0][1],"compute")
self.assertEqual(matches[0][2],"test") self.assertEqual(matches[0][2],"test")
self.assertEqual(matches[0][3],"all") self.assertEqual(matches[0][3],"all")
self.assertEqual(matches[0][4],"centro/atom") self.assertEqual(matches[0][4],"stress/atom")
def testExpandFixGroup(self): def testExpandFixGroup(self):
"""Test expansion of a group-ID and a fix command""" """Test expansion of a group-ID and a fix command"""
matches = re.findall(cmd_group_re, self.InputRunner(b'fix test al\tcontroll\t\n'), re.MULTILINE) matches = re.findall(cmd_group_re, self.InputRunner(b'fix test al\tpropert\t\n'), re.MULTILINE)
if self.timeout: if self.timeout:
self.fail("Timeout") self.fail("Timeout")
else: else:
self.assertEqual(matches[0][1],"fix") self.assertEqual(matches[0][1],"fix")
self.assertEqual(matches[0][2],"test") self.assertEqual(matches[0][2],"test")
self.assertEqual(matches[0][3],"all") self.assertEqual(matches[0][3],"all")
self.assertEqual(matches[0][4],"controller") self.assertEqual(matches[0][4],"property/atom")
def testExpandSource(self): def testExpandSource(self):
"""Test expansion of a shell command and a file name""" """Test expansion of a shell command and a file name"""