Back to index

python3.2  3.2.2
Public Member Functions
test.test_funcattrs.CellTest Class Reference

List of all members.

Public Member Functions

def test_comparison

Detailed Description

Definition at line 293 of file

Member Function Documentation

Definition at line 294 of file

00295     def test_comparison(self):
00296         # These tests are here simply to exercise the comparison code;
00297         # their presence should not be interpreted as providing any
00298         # guarantees about the semantics (or even existence) of cell
00299         # comparisons in future versions of CPython.
00300         self.assertTrue(cell(2) < cell(3))
00301         self.assertTrue(empty_cell() < cell('saturday'))
00302         self.assertTrue(empty_cell() == empty_cell())
00303         self.assertTrue(cell(-36) == cell(-36.0))
00304         self.assertTrue(cell(True) > empty_cell())

Here is the call graph for this function:

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