def test_can_get_violation_definitions(self): reviewer = Mock() validator = RobotsValidator(reviewer) definitions = validator.get_violation_definitions() expect(definitions).to_length(5) expect('robots.not_found' in definitions).to_be_true() expect('robots.empty' in definitions).to_be_true() expect('robots.sitemap.not_found' in definitions).to_be_true() expect('robots.disallow.not_found' in definitions).to_be_true() expect('robots.disallow.root_path' in definitions).to_be_true()