Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
unit-Expression.TestContext Class Reference

List of all members.

Public Member Functions

def setUp
def test_string_literal
def test_variable
def test_in

Public Attributes

 c

Detailed Description

Unit tests for the Context class

Definition at line 9 of file unit-Expression.py.


Member Function Documentation

def unit-Expression.TestContext.setUp (   self)

Definition at line 14 of file unit-Expression.py.

00014 
00015   def setUp(self):
00016     self.c = Context()
00017     self.c['FAIL'] = 'PASS'

def unit-Expression.TestContext.test_in (   self)
test 'var in context' to not fall for fallback

Definition at line 26 of file unit-Expression.py.

00026 
00027   def test_in(self):
00028     """test 'var in context' to not fall for fallback"""
00029     self.assert_('FAIL' in self.c)
00030     self.assert_('PASS' not in self.c)

def unit-Expression.TestContext.test_string_literal (   self)
test string literal, fall-through for undefined var in a Context

Definition at line 18 of file unit-Expression.py.

00018 
00019   def test_string_literal(self):
00020     """test string literal, fall-through for undefined var in a Context"""
00021     self.assertEqual(self.c['PASS'], 'PASS')

Here is the call graph for this function:

def unit-Expression.TestContext.test_variable (   self)
test value for defined var in the Context class

Definition at line 22 of file unit-Expression.py.

00022 
00023   def test_variable(self):
00024     """test value for defined var in the Context class"""
00025     self.assertEqual(self.c['FAIL'], 'PASS')

Here is the call graph for this function:


Member Data Documentation

unit-Expression.TestContext.c

Definition at line 15 of file unit-Expression.py.


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