def METHOD_NAME(self):
    # all data is valid - should import cleanly
    cmd = Command()
    cmd.read_from_url = lambda x: self.valid_test_data
    cmd.get_division_type_from_registers = lambda x: "DIW"
    cmd.handle(**self.opts)
    # check it all imported correctly
    org3divset = (
        OrganisationDivisionSet.objects.all()
        .filter(organisation=self.org3)
        .order_by("-start_date")
    )
    self.assertEqual(2, len(org3divset))
    self.assertEqual(
        "2017-05-04", org3divset[0].start_date.strftime("%Y-%m-%d")
    )
    self.assertIsNone(org3divset[0].end_date)
    self.assertEqual(2, len(org3divset[0].divisions.all()))
    org4divset = (
        OrganisationDivisionSet.objects.all()
        .filter(organisation=self.org4)
        .order_by("-start_date")
    )
    self.assertEqual(2, len(org4divset))
    self.assertEqual(
        "2018-05-03", org4divset[0].start_date.strftime("%Y-%m-%d")
    )
    self.assertIsNone(org4divset[0].end_date)
    self.assertEqual(2, len(org4divset[0].divisions.all()))