def test_parse_message(self): result = make_codebook.parse_message("cosine 1 14", 3) self.assertEqual(result, False)
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)
def test_parse_message(self): result = make_codebook.parse_message("cosine sine 2 14", 3) self.assertEqual(result, [['cosine', 'sine', '2', '14']])
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'])