def setUp(self): # clean up, in case some other tests left some straggling # form data, we want to start with a clean test environment # each time. clear_data() mockdomain = Domain.objects.get_or_create(name='metadomain')[0] self.domain = mockdomain
def setUp(self): clear_data() mockdomain = Domain.objects.get_or_create(name='geodomain')[0] self.instance_filename = os.path.join(os.path.dirname(__file__), "data", "geopoint", "geopoint_instance.xml") self.domain = mockdomain
def setUp(self): clear_data() mockdomain = Domain.objects.get_or_create(name='dupe_dom')[0] self.domain = mockdomain
def setUp(self): clear_data() mockdomain = Domain.objects.get_or_create(name='versioneddomain')[0] self.domain = mockdomain
def tearDown(self): # duplicates setUp, but at least we know we're being clean clear_data()
def setUp(self): clear_data() mockdomain = Domain.objects.get_or_create(name="repeatdomain")[0] self.domain = mockdomain
def setUp(self): clear_data() SubmissionHandlingOccurrence.objects.all().delete() mockdomain = Domain.objects.get_or_create(name='remdomain')[0] self.domain = mockdomain