def test_copy_custom_data(self):
        migrator = AccountMigrator(
            destination_directory = self.dst_dir,
            source_account = self.account,
            source_password = '******',
        )
        migrator.destination_account = migrator.get_destination_account()
        migrator.copy_account()
        copied_data = migrator.copy_custom_data()

        self.assertEqual(copied_data['hi'], 'there')
    def test_copy_account(self):
        migrator = AccountMigrator(
            destination_directory = self.dst_dir,
            source_account = self.account,
            source_password = '******',
        )
        migrator.destination_account = migrator.get_destination_account()
        copied_account = migrator.copy_account()

        self.assertEqual(copied_account.username, self.account.username)
        self.assertEqual(copied_account.given_name, self.account.given_name)
        self.assertEqual(copied_account.middle_name, self.account.middle_name)
        self.assertEqual(copied_account.surname, self.account.surname)
        self.assertEqual(copied_account.email, self.account.email)
        self.assertEqual(copied_account.status, self.account.status)