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 " )
def test_buy_when_no_selected_phone(self): test = Purchase() self.assertEqual(test.buy(),"Please add something to the list" )