def test_download_xform_xml(self):
        with HTTMock(form_list_xml):
            self.bc.download_xforms()
        forms_folder_path = os.path.join(
            'deno', 'briefcase', 'forms', self.xform.id_string)
        self.assertTrue(storage.exists(forms_folder_path))
        forms_path = os.path.join(forms_folder_path,
                                  '%s.xml' % self.xform.id_string)
        self.assertTrue(storage.exists(forms_path))
        form_media_path = os.path.join(forms_folder_path, 'form-media')
        self.assertTrue(storage.exists(form_media_path))
        media_path = os.path.join(form_media_path, 'screenshot.png')
        self.assertTrue(storage.exists(media_path))

        """
        Download instance xml
        """
        with HTTMock(instances_xml):
            self.bc.download_instances(self.xform.id_string)
        instance_folder_path = os.path.join(
            'deno', 'briefcase', 'forms', self.xform.id_string, 'instances')
        self.assertTrue(storage.exists(instance_folder_path))
        instance = Instance.objects.all()[0]
        instance_path = os.path.join(
            instance_folder_path, 'uuid%s' % instance.uuid, 'submission.xml')
        self.assertTrue(storage.exists(instance_path))
        media_file = "1335783522563.jpg"
        media_path = os.path.join(
            instance_folder_path, 'uuid%s' % instance.uuid, media_file)
        self.assertTrue(storage.exists(media_path))
Placeholder.
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/tests/test_briefcase_client.py/TestBriefcaseClient.test_download_xform_xml--crossover with--dataset/ETHPy150Open ecdavis/pants/pants/contrib/irc.py/BaseIRC.irc_close