Exemplo n.º 1
0
 def test_sould_return_false_when_an_invalid_message_is_passed(self):
     invalid_message = '235948.043,,,,,0,,,,140209,00'
     spl_message = invalid_message.split(',')
     
     self.assertFalse(main.is_valid_message(spl_message))
Exemplo n.º 2
0
    def test_sould_return_true_when_a_valid_message_is_passed(self):
        invalid_message = '225109.000,1545.1554S,04752.9177W,0.6,1066.3,3,190.05,0.03,0.01,261010,10'
        spl_message = invalid_message.split(',')

        self.assertTrue(main.is_valid_message(spl_message))