Example #1
0
 def test_process_allstops(self):
     d = {'a': 1, 'b': 1, 'c': 1, 'splat!': 1}
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual([], stopper.process(d, words))
Example #2
0
 def test_process_nostops(self):
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual(words, stopper.process({}, words))
Example #3
0
 def test_process_allstops(self):
     d = {'a':1, 'b':1, 'c':1, 'splat!':1}
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual([], stopper.process(d, words))
Example #4
0
 def test_process_nostops(self):
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual(words, stopper.process({}, words))
Example #5
0
 def test_process_allstops(self):
     d = {"a": 1, "b": 1, "c": 1, "splat!": 1}
     words = ["a", "b", "c", "splat!"]
     self.assertEqual([], stopper.process(d, words))
Example #6
0
 def test_process_nostops(self):
     words = ["a", "b", "c", "splat!"]
     self.assertEqual(words, stopper.process({}, words))