def METHOD_NAME(self, vocabulary):
    Sector.objects.create(
        project=self.project,
        vocabulary=vocabulary,
        sector_code=random_string(),
    )
    all_checks_passed, checks = sectors_checks(self.project)
    self.assertFalse(all_checks_passed)
    self.assertEqual('error', checks[0][0])
    self.assertIn('has invalid sector code', checks[0][1])