コード例 #1
0
    def test_list_of_selected_phones_buy(self):
        test = Purchase()
        test.select_cell_phone("Motorola G99")
        test.select_cell_phone("Motorola G99")
        test.unselect_cell_phone("Motorola G99")

        self.assertEqual(test.buy(),"Motorola G99 " )
コード例 #2
0
 def test_select_cellphone4(self):
     test = Purchase()
     self.assertEqual(test.select_cell_phone('Huawei 99'), 900)
コード例 #3
0
 def test_select_cellphone3(self):
     test = Purchase()
     self.assertEqual(test.select_cell_phone('Sony Xperia 99'), 900)
コード例 #4
0
 def test_select_cellphone2(self):
     test = Purchase()
     self.assertEqual(test.select_cell_phone('Samsung Galaxy 99'), 1000)
コード例 #5
0
 def test_select_cellphone1(self):
     test = Purchase()
     self.assertEqual(test.select_cell_phone('iPhone 99'), 6000)
コード例 #6
0
 def test_select_cellphone(self):
     test = Purchase()
     self.assertEqual(test.select_cell_phone('Motorola G99'), 800)