def test_39_and_true_returns_false(self): actual = cigar_party(39, True) expected = False self.assertEqual( actual, expected, 'Expected calling cigar_party() with 39 and True to return "False"' )
def test_61_and_false_returns_false(self): actual = cigar_party(61, False) expected = False self.assertEqual( actual, expected, 'Expected calling cigar_party() with 61 and False to return "False"' )
def test_40_and_false_returns_true(self): actual = cigar_party(40, False) expected = True self.assertEqual( actual, expected, 'Expected calling cigar_party() with 40 and False to return "True"' )
is no upper bound on the number of cigars. Return True if the party with the given values is successful, or False otherwise. """ # you can change this import to test different versions from cigar_party import cigar_party # from cigar_party import cigar_party2 as cigar_party # from cigar_party import cigar_party3 as cigar_party def test_1(): assert cigar_party(30, False) is False print("\tevaluate test # 1: ", cigar_party(30, False), "<--should be False") def test_2(): assert cigar_party(50, False) is True print("\tevaluate test # 2: ", cigar_party(50, False), "<--should be T") def test_3(): assert cigar_party(70, True) is True print("\tevaluate test # 3: ", cigar_party(70, True), "<--should be T")
def test_10(): assert cigar_party(40, True) is True
def test_8(): assert cigar_party(40, False) is True
def test_6(): assert cigar_party(60, False) is True
def test_4(): assert cigar_party(30, True) is False
def test_2(): assert cigar_party(50, False) is True
def test_5(): assert cigar_party(50, True) is True
def test_3(): assert cigar_party(70, True) is True
def test_1(): assert cigar_party(30, False) is False
def test_1(): assert cigar_party(41, False) is True
Return True if the party with the given values is successful, or False otherwise. """ # you can change this import to test different versions from cigar_party import cigar_party # from cigar_party import cigar_party2 as cigar_party # from cigar_party import cigar_party3 as cigar_party def test_1(): assert cigar_party(30, False) is False print("\tevaluate test # 1: ", cigar_party(30, False), "<--should be False") def test_2(): assert cigar_party(50, False) is True print("\tevaluate test # 2: ", cigar_party(50, False), "<--should be T") def test_3(): assert cigar_party(70, True) is True print("\tevaluate test # 3: ", cigar_party(70, True), "<--should be T") def test_4(): assert cigar_party(30, True) is False print("\tevaluate test # 4: ", cigar_party(30, True), "<--should be F") def test_5(): assert cigar_party(50, True) is True
def test_7(): assert cigar_party(61, False) is False
def test_9(): assert cigar_party(39, False) is False
def test_11(): assert cigar_party(39, True) is False
def test_50_and_true_returns_true(self): actual = cigar_party(50, True) expected = True self.assertEqual( actual, expected, 'Expected calling cigar_party() with 50 and True to return "True"')
def test_12(): assert cigar_party(-1, True) is False