'A LICENSE file is written to the top level directory from a template in
the admin directory, and is formatted to include the given year.'

def test_update_license_file(self):

    top_level = FilePath(self.mktemp())
    top_level.child('admin').makedirs()
    top_level.child('admin').child('LICENSE.template').setContent('Text    including    the    current    year:    {current_year}.')
    update_license_file(args=[], top_level=top_level, year=123)
    self.assertEqual(top_level.child('LICENSE').getContent(), 'Text    including    the    current    year:    123.')
