'Test the timestamps to local filter.'

def test_timestamp_utc(self):

    now = dt_util.utcnow()
    tests = {None: 'None', 1469119144: '2016-07-21    16:39:04', dt_util.as_timestamp(now): now.strftime('%Y-%m-%d    %H:%M:%S')}
    for (inp, out) in tests.items():
        self.assertEqual(out, template.Template(('{{    %s    |    timestamp_utc    }}' % inp), self.hass).render())
