Пример #1
0
    def test_amounts(self):
        b = SubmitSmRespBill(self.user)

        b.setAmount('submit_sm_resp', 2)
        self.assertEqual(b.getAmount('submit_sm_resp'), 2)
        self.assertEqual(b.getTotalAmounts(), 2)
Пример #2
0
    def test_amounts(self):
        b = SubmitSmRespBill(self.user)

        b.setAmount('submit_sm_resp', 2)
        self.assertEqual(b.getAmount('submit_sm_resp'), 2)
        self.assertEqual(b.getTotalAmounts(), 2)
Пример #3
0
    def test_default(self):
        b = SubmitSmRespBill(self.user)

        self.assertEqual(b.getAmount('submit_sm_resp'), 0.0)
        self.assertNotEquals(b.bid, None)
        self.assertEqual(b.user, self.user)
Пример #4
0
    def test_default(self):
        b = SubmitSmRespBill(self.user)

        self.assertEqual(b.getAmount('submit_sm_resp'), 0.0)
        self.assertNotEquals(b.bid, None)
        self.assertEqual(b.user, self.user)