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