コード例 #1
0
    def test_homebrew(self):
        #setup
        factory = InstallerFactory()
        factory.with_command('brew')

        #when
        result = factory.find()

        #then
        assert type(result) is HomebrewRunner
コード例 #2
0
    def test_choco(self):
        #setup
        factory = InstallerFactory()
        factory.with_command('choco')

        #when
        result = factory.find()

        #then
        assert type(result) is ChocoRunner