예제 #1
0
    def test_can_get_fact_definitions(self):
        reviewer = Mock()
        facter = CSSFacter(reviewer)
        definitions = facter.get_fact_definitions()

        expect(definitions).to_length(4)
        expect('page.css' in definitions).to_be_true()
        expect('total.size.css' in definitions).to_be_true()
        expect('total.size.css.gzipped' in definitions).to_be_true()
        expect('total.requests.css' in definitions).to_be_true()
예제 #2
0
    def test_can_get_fact_definitions(self):
        reviewer = Mock()
        facter = CSSFacter(reviewer)
        definitions = facter.get_fact_definitions()

        expect(definitions).to_length(4)
        expect('page.css' in definitions).to_be_true()
        expect('total.size.css' in definitions).to_be_true()
        expect('total.size.css.gzipped' in definitions).to_be_true()
        expect('total.requests.css' in definitions).to_be_true()