def METHOD_NAME(self):
    timeval = time.mktime((2011, 12, 1, 18, 0, 0, 4, 335, 0))
    string = utils.formatdate(timeval, localtime=False, usegmt=False)
    self.assertEqual(string, 'Thu, 01 Dec 2011 15:00:00 -0000')
    string = utils.formatdate(timeval, localtime=False, usegmt=True)
    self.assertEqual(string, 'Thu, 01 Dec 2011 15:00:00 GMT')