def test_fails_for_equal_values(self): with assert_raises_assertion("Expected 'apple' != 'apple'"): expect('apple').not_equal('apple')
def test_fails_for_unequal_values(self): with assert_raises_assertion("Expected 'apple' == 'orange'"): expect('apple').equal('orange')
def test_passes_for_unequal_values(self): expect('apple').not_equal('orange')
def test_fails_for_equal_values(self): with assert_raises_assertion( 'Expected 1.0000001 not almost equal to 1.00000014 (7)'): expect(1.0000001).not_almost_equal(1.00000014)
def test_passes_for_equal_values(self): expect('apple').equal('apple')
def test_passes_for_different_values(self): expect(False).is_not(True)
def test_passes_for_equal_value(self): expect(10).less_equal(10)
def test_passes_for_equal_values(self): expect(1.0000001).almost_equal(1.00000014) expect(1.0000001).almost_equal(1.00000006)
def test_fails_for_unequal_values(self): with assert_raises_assertion( 'Expected 1.0000001 almost equal to 1.00000016 (7)'): expect(1.0000001).almost_equal(1.00000016)
def test_passes_for_equal_value(self): expect(10).greater_equal(10)
def test_fails_for_larger_value(self): with assert_raises_assertion('Expected 10 >= 11'): expect(10).greater_equal(11)
def test_takes_one_argument(self): expect(None)
def test_passes_for_smaller_value(self): expect(10).greater(9)
def test_fails_for_smaller_value(self): with assert_raises_assertion('Expected 10 <= 9'): expect(10).less_equal(9)
def test_passes_for_same_values(self): expect(False).is_(False)
def test_passes_for_unequal_values(self): expect(1.0000001).not_almost_equal(1.00000016)
def test_fails_for_different_values(self): with assert_raises_assertion('Expected False is True'): expect(False).is_(True)
def test_does_not_allow_zero_arguments(self): with assert_raises(TypeError): expect()
def test_fails_for_same_values(self): with assert_raises_assertion('Expected False is not False'): expect(False).is_not(False)
def test_passes_for_larger_value(self): expect(10).less_equal(11)