This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
def setUpModule(): | |
print "In setUpModule()" | |
def tearDownModule(): | |
print "In tearDownModule()" | |
class FirstTestClass(unittest.TestCase): | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class FirstTestClass(unittest.TestCase): | |
def test_add(self): | |
self.assertEquals(120, 100 + 20) | |
class SecondTestClass(unittest.TestCase): | |
def setUp(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class FirstTestClass(unittest.TestCase): | |
def test_add(self): | |
self.assertEquals(120, 100 + 20) | |
class SecondTestClass(unittest.TestCase): | |
def test_sub(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class BaseTestClass(unittest.TestCase): | |
def test_add(self): | |
self.assertEquals(120, 100 + 20) | |
self.assertFalse(10 > 20) | |
self.assertGreater(120, 100) | |
def test_sub(self): |
NewerOlder