Example #1
0
 def test_parse_message(self):
     result = make_codebook.parse_message("cosine 1 14", 3)
     self.assertEqual(result, False)
Example #2
0
 def test_parse_message(self):
     result = make_codebook.parse_message("cosine and sine, test and sine, test, test ,test, test, test", 2)
     self.assertEqual(result, False)
Example #3
0
 def test_parse_message(self):
     result = make_codebook.parse_message("cosine sine 2 14", 3)
     self.assertEqual(result, [['cosine', 'sine', '2', '14']])
Example #4
0
 def test_parse_message(self):
     result = make_codebook.parse_message("cosine and sine, test and sine", 2)
     self.assertEqual(result, ['cosine and sine', 'test and sine'])