def test_extract_by_flag_MSG(self): prefix, effective = extract_by_flag(MSG_FLAG, "V3.53$Essa é para testar a mensagem") expected = "Essa é para testar a mensagem" self.assertEqual(expected, effective) self.assertEqual(prefix, "V3.53")
def test_extract_by_flag_MSG(self): prefix, effective = extract_by_flag(BOAT_FLAG, "BeSB1") expected = "eSB1" self.assertEqual(expected, effective) self.assertEqual(prefix, "")