Example #1
0
 def test_pruningConditionDeterministic(self):
     phrase1 = Phrase(
         'dsf', test_time -
         3 * stream_settings['max_phrase_inactivity_time_in_seconds'], 1)
     phrase2 = Phrase('dsf', test_time, 1)
     self.assertTrue(
         UtilityMethods.pruningConditionDeterministic(
             phrase1, test_time, **stream_settings))
     self.assertFalse(
         UtilityMethods.pruningConditionDeterministic(
             phrase2, test_time, **stream_settings))
 def test_pruningConditionDeterministic(self):
     phrase1 = Phrase('dsf', test_time-3*stream_settings['max_phrase_inactivity_time_in_seconds'], 1)
     phrase2 = Phrase('dsf', test_time, 1)
     self.assertTrue(UtilityMethods.pruningConditionDeterministic(phrase1, test_time, **stream_settings))
     self.assertFalse(UtilityMethods.pruningConditionDeterministic(phrase2, test_time, **stream_settings))