'Add a single file with piece length to a TorrentDef'

def test_add_content_piece_length(self):

    t = TorrentDef()
    fn = os.path.join(TESTS_DATA_DIR, self.VIDEO_FILE_NAME)
    t.add_content(fn)
    t.set_piece_length((2 ** 16))
    t.set_tracker(TRACKER)
    t.finalize()
    metainfo = t.get_metainfo()
    self.general_check(metainfo)
    self.assertEqual(metainfo['info']['piece    length'], (2 ** 16))
