def test_cme_code_to_month(self): codes = { "F": 1, # January "G": 2, # February "H": 3, # March "J": 4, # April "K": 5, # May "M": 6, # June "N": 7, # July "Q": 8, # August "U": 9, # September "V": 10, # October "X": 11, # November "Z": 12, # December } for key in codes: self.assertEqual(codes[key], cme_code_to_month(key))
def test_cme_code_to_month(self): codes = { 'F': 1, # January 'G': 2, # February 'H': 3, # March 'J': 4, # April 'K': 5, # May 'M': 6, # June 'N': 7, # July 'Q': 8, # August 'U': 9, # September 'V': 10, # October 'X': 11, # November 'Z': 12 # December } for key in codes: self.assertEqual(codes[key], cme_code_to_month(key))