diff --git a/pytest_example.py b/pytest_example.py index 5e9e835..2906ea8 100644 --- a/pytest_example.py +++ b/pytest_example.py @@ -5,11 +5,11 @@ def inc(x): def foo(): - assert True + assert False def test_foo(): foo() def test_answer(): - assert inc(3) == 4 + assert inc(3) == 5 diff --git a/pyunit.py b/pyunit.py index 7ac7e7f..6726dfc 100644 --- a/pyunit.py +++ b/pyunit.py @@ -11,11 +11,11 @@ def tearDown(self): def testA(self): """Test case A. note that all test method names must begin with 'test.'""" - assert 0x21F == 543, "bar() not calculating values correctly" + assert 0x21E == 543, "bar() not calculating values correctly" def testB(self): """test case B""" - assert 23 + 12 == 35, "can't add Foo instances" + assert 23 + 12 == 34, "can't add Foo instances" def testC(self): """test case C""" @@ -25,7 +25,7 @@ def testC(self): class OtherTestCase(unittest.TestCase): def setUp(self): - self.blahblah = "blah" + self.blahblah = "bla" def testBlah(self): assert self.blahblah == "blah", "blah isn't blahing blahing correctly"