예제 #1
0
    def test_buy_digit_under_contract(self):
        proposal = tu.proposal_digit(self.symbol, "DIGITUNDER")
        expected_longcode = 'Win payout if the last digit of {} is strictly lower than 5 ' \
                            'after 5 ticks.'.format(self.symbol_name)

        self.assert_longcode(proposal, expected_longcode)
예제 #2
0
    def test_buy_digit_diff_contract(self):
        proposal = tu.proposal_digit(self.symbol, "DIGITDIFF")
        expected_longcode = 'Win payout if the last digit of {} is not 5 after 5 ticks.' \
            .format(self.symbol_name)

        self.assert_longcode(proposal, expected_longcode)