Back to index

python3.2  3.2.2
Public Member Functions
unittest.test._test_warnings.TestWarnings Class Reference

List of all members.

Public Member Functions

def test_assert
def test_fail
def test_other_unittest
def test_deprecation
def test_import
def test_warning
def test_function

Detailed Description

Definition at line 21 of file _test_warnings.py.


Member Function Documentation

Definition at line 24 of file _test_warnings.py.

00024 
00025     def test_assert(self):
00026         self.assertEquals(2+2, 4)
00027         self.assertEquals(2*2, 4)
00028         self.assertEquals(2**2, 4)

Definition at line 38 of file _test_warnings.py.

00038 
00039     def test_deprecation(self):
00040         warnings.warn('dw', DeprecationWarning)
00041         warnings.warn('dw', DeprecationWarning)
00042         warnings.warn('dw', DeprecationWarning)

Here is the call graph for this function:

Definition at line 29 of file _test_warnings.py.

00029 
00030     def test_fail(self):
00031         self.failUnless(1)
00032         self.failUnless(True)

Definition at line 56 of file _test_warnings.py.

00056 
00057     def test_function(self):
00058 
00059         warnfun()
00060         warnfun()
00061         warnfun()
00062 
00063 

Here is the call graph for this function:

Definition at line 43 of file _test_warnings.py.

00043 
00044     def test_import(self):
00045         warnings.warn('iw', ImportWarning)
00046         warnings.warn('iw', ImportWarning)
00047         warnings.warn('iw', ImportWarning)

Here is the call graph for this function:

Definition at line 33 of file _test_warnings.py.

00033 
00034     def test_other_unittest(self):
00035         self.assertAlmostEqual(2+2, 4)
00036         self.assertNotAlmostEqual(4+4, 2)

Here is the call graph for this function:

Definition at line 49 of file _test_warnings.py.

00049 
00050     def test_warning(self):
00051         warnings.warn('uw')
00052         warnings.warn('uw')
00053         warnings.warn('uw')

Here is the call graph for this function:


The documentation for this class was generated from the following file: