Example #1
0
def testCase4():
    print("--- Test Case 4 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(1, 0.5)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 4 End---")
Example #2
0
def testCase5():
    print("--- Test Case 5 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(1, 0.5)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 1, 1)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 5 End---")
Example #3
0
def testCase1():
    print("--- Test Case 1 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(3, 1)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(4, 0, 0)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 1 End---")
Example #4
0
def testCase7():
    print("--- Test Case 7 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(3, 0.5)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.setPricePerCoffee(0.75)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 2, 1)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 7 End---")
Example #5
0
def testCase3():
    print("--- Test Case 3 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(1, 0.5)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(1, 2, 1)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 0, 0)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 3 End---")
Example #6
0
def testCase2():
    print("--- Test Case 2 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(4, 0.75)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 1, 3)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 2, 1)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    print("--- Test Case 2 End---")
Example #7
0
def testCase8():
    print("--- Test Case 8 Start ---")
    coffeeVendingMaching = CoffeeVendingMachine(1, 0.5)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.setPricePerCoffee(0.75)
    coffeeVendingMaching.menu()
    coffeeVendingMaching.insert(2, 2, 1)
    coffeeVendingMaching.select()
    coffeeVendingMaching.menu()
    coffeeVendingMaching.setQuantity(3)
    coffeeVendingMaching.menu()
    print("--- Test Case 8 End---")