Add second TSC speed regular expression
[muen/mugenhwcfg.git] / test / test_creator.py
index 41035e0..3a8b16f 100644 (file)
@@ -107,10 +107,12 @@ class TestProcessorCreator:
 
     def test_getSpeed(self):
         dmesgloc = os.path.join(self.testdir, "dmesg")
+        dmesgloc2 = os.path.join(self.testdir, "dmesg_tsc_detected")
         dmesg_nokey = os.path.join(self.testdir, "dmesg_nokey")
         invalidloc = os.path.join(self.testdir, "invalidlocdmesg")
         KEY = "Refined TSC clocksource calibration"
         assert self.procreator.getSpeed(dmesgloc) == 3192.746
+        assert self.procreator.getSpeed(dmesgloc2) == 3192.667
         with pytest.raises(customExceptions.ForceQuit):
             self.procreator.getSpeed(invalidloc)
         with pytest.raises(customExceptions.ForceQuit):