'Test the timestamps to local filter.'

def test_timestamp_local(self):

    tests = {None: 'None', 1469119144: '2016-07-21    16:39:04'}
    for (inp, out) in tests.items():
        self.assertEqual(out, template.Template(('{{    %s    |    timestamp_local    }}' % inp), self.hass).render())
