def test_ensure_80_5(self): protocolService = ProtocolService("") protocolService.ensure_port_80() self.assertTrue(80 in protocolService.get_ports())
def test_ensure_80_is_not_empty(self): protocolService = ProtocolService(None) protocolService.ensure_port_80() self.assertTrue(protocolService.is_not_empty())
def test_ensure_80_4(self): protocolService = ProtocolService("with-http,with-ssh") protocolService.ensure_port_80() self.assertTrue(80 in protocolService.get_ports())